Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Author Topic: A modding guide for coding for new coders.  (Read 3906 times)

mostmodest

  • Commander
  • ***
  • Posts: 171
    • View Profile
A modding guide for coding for new coders.
« on: February 28, 2013, 11:41:08 PM »

I was wondering if anyone would be able to/has the time to make a step-by-step mod coding tutorial for new coders. (i.e. "Modding Starsector for Dummies" or something.) I'm just wondering because I have no idea how to code, but I would like to learn so that I can make a mod. If not, just a few pointers on how to start and what to do would be nice.
Logged
Yes, you are reading to far into this.

ValkyriaL

  • Admiral
  • *****
  • Posts: 2145
  • The Guru of Capital Ships.
    • View Profile
Re: A modding guide for coding for new coders.
« Reply #1 on: March 01, 2013, 12:17:01 AM »

We have threads like that, if you look around. modding resources also provides you help. 
Logged

TheHappyFace

  • Admiral
  • *****
  • Posts: 1168
  • The critic
    • View Profile
Re: A modding guide for coding for new coders.
« Reply #2 on: March 01, 2013, 02:47:00 AM »

and there is some information in the documentation section
Logged
Fractalsoftworks limited edition ban hammer.

mostmodest

  • Commander
  • ***
  • Posts: 171
    • View Profile
Re: A modding guide for coding for new coders.
« Reply #3 on: March 01, 2013, 02:59:35 AM »

cheers, guys.
I was just wondering if there was a sort of template (i.e. shipnamehere.shipinfostuff(other things) or something of the sort.
(It'll be my first attempt at programming something.)
By the way, which language is the coding? Is it Java or JS?
Logged
Yes, you are reading to far into this.

Flare

  • Admiral
  • *****
  • Posts: 906
    • View Profile
Re: A modding guide for coding for new coders.
« Reply #4 on: March 01, 2013, 03:52:58 AM »

I think I made a template a long time ago on the wiki. I don't think that has survived.
Logged
Quote from: Thana
Quote from: Alex

The battle station is not completely operational, shall we say.

"Now witness the firepower of this thoroughly buggy and unoperational batt... Oh, hell, you know what? Just ignore the battle station, okay?"

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23987
    • View Profile
Re: A modding guide for coding for new coders.
« Reply #5 on: March 01, 2013, 06:25:07 PM »

It's in Java; I would really suggest doing some Java tutorials just to get a feel for the basics. If you haven't done any programming before it's going to be a bit rough.

The best place to start, if you're intent on doing something modding-wise, is to use the stuff in the base game as a reference. I.E. you might look at how a ship system is implemented, copy that, and work from there. There's also documentation in starsector-core/starfarer.api.zip, but that's not going to be helpful unless you're familiar with some basic Java concepts first. It's just a function reference so you know what's there, and light on actual explanations.
Logged

EnderNerdcore

  • Commander
  • ***
  • Posts: 172
    • View Profile
Re: A modding guide for coding for new coders.
« Reply #6 on: March 01, 2013, 08:09:27 PM »

It's in Java; I would really suggest doing some Java tutorials just to get a feel for the basics. If you haven't done any programming before it's going to be a bit rough.

The best place to start, if you're intent on doing something modding-wise, is to use the stuff in the base game as a reference. I.E. you might look at how a ship system is implemented, copy that, and work from there. There's also documentation in starsector-core/starfarer.api.zip, but that's not going to be helpful unless you're familiar with some basic Java concepts first. It's just a function reference so you know what's there, and light on actual explanations.
This, plus take a look at other people's mods.

Many of us extensively comment all of our code, so as you're starting out you can look through what we've done to see how we've done it.
Logged

mostmodest

  • Commander
  • ***
  • Posts: 171
    • View Profile
Re: A modding guide for coding for new coders.
« Reply #7 on: March 02, 2013, 12:15:06 AM »

Thanks for all your help guys, I'm just waiting on the all clear from Kevin J Anderson, and I will begin mod production. :D
Logged
Yes, you are reading to far into this.

Sproginator

  • Admiral
  • *****
  • Posts: 3592
  • Forum Ancient
    • View Profile
Re: A modding guide for coding for new coders.
« Reply #8 on: March 02, 2013, 07:08:47 AM »

Would you like me to show you how to do any problems you may have? I can work through it through a stream with you. I currently stream my mod making of Battlefarer Forever, If you need to know how to get a ship I recommend you come by when its up next and let me know your there :)
-Sprog
Logged
A person who's never made a mistake, never tried anything new
- Albert Einstein

As long as we don't quit, we haven't failed
- Jamie Fristrom (Programmer for Spiderman2 & Lead Developer for Energy Hook)

mostmodest

  • Commander
  • ***
  • Posts: 171
    • View Profile
Re: A modding guide for coding for new coders.
« Reply #9 on: March 02, 2013, 04:08:08 PM »

<stupid_question> How do I access you streams?</stupid_question>
Logged
Yes, you are reading to far into this.

Sproginator

  • Admiral
  • *****
  • Posts: 3592
  • Forum Ancient
    • View Profile
Re: A modding guide for coding for new coders.
« Reply #10 on: March 02, 2013, 04:57:11 PM »

Just go to http://www.twitch.tv/sproginator

What is your timezone? I can play a stream then
Logged
A person who's never made a mistake, never tried anything new
- Albert Einstein

As long as we don't quit, we haven't failed
- Jamie Fristrom (Programmer for Spiderman2 & Lead Developer for Energy Hook)

mostmodest

  • Commander
  • ***
  • Posts: 171
    • View Profile
Re: A modding guide for coding for new coders.
« Reply #11 on: March 03, 2013, 09:09:01 AM »

GMT+8:00 (Perth, Beijing, et cetera...)
You don't have to if it's too much of an inconvenience, I can always come back and watch it when I get up or w/ever. (Also, I'm at school from 8 until 15:30 every day, so I can't access anything. (They even blocked these forums  :-[))
Anyway, back to the OT, thanks all for your help, and I'm just waiting for the all-clear before I can begin mod production.
Logged
Yes, you are reading to far into this.