Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: rubixcube on April 25, 2010, 04:11:51 pm

Title: table editing
Post by: rubixcube on April 25, 2010, 04:11:51 pm
I want to do some table editing for experimentation purposes. I created a backup for the files for the Root_fs2 file (which I am editing), but as soon as I make any changes at all to the entries (with notepad), the game stops working. When running a debug build it told me there was an ERANGE: String error. Can somebody tell me what I'm doing wrong? Thanks, I appreciate it  :)
Title: Re: table editing
Post by: Jeff Vader on April 25, 2010, 04:20:03 pm
Can somebody tell me what I'm doing wrong?
Dunno about the errors you've caused with the edits, but the preferred method for editing is to
- EXTRACT the files you want to edit away from the .vp
- edit the files with a text editor
- place the edited files preferrably to the proper subdirectory under \freespace2\yourmodfolder\data\ . In this case, \freespace2\yourmodfolder\data\tables\ .

You can also use \freespace2\data\ in the same way, as long as you remember that you've placed edited stuff there and remember to take the edited stuff away when you try to play normally again.

Please don't edit .vp files directly. You've taken backups, yes, and I commend you on that. But it is still more complicated than abusing the fact that files under \freespace2\modfolder\data\ and \freespace2\data\ are at a higher priority than files inside the .vps.
Title: Re: table editing
Post by: rubixcube on April 25, 2010, 07:55:35 pm
Ah, finally, there we go, thanks for your help :)
Title: Re: table editing
Post by: The E on April 25, 2010, 07:58:53 pm
Finally? You got an answer 4 minutes after posting the question, how much faster do you want it?
Title: Re: table editing
Post by: Scourge of Ages on April 25, 2010, 09:27:19 pm
Most likely, it was: "Finally, I got it working with Jeff's help."
Title: Re: table editing
Post by: rubixcube on April 25, 2010, 10:31:57 pm
Most likely, it was: "Finally, I got it working with Jeff's help."

Yeah pretty much
Title: Re: table editing
Post by: headdie on April 26, 2010, 02:55:13 am
also as a general piece of advice read the wiki http://www.hard-light.net/wiki/index.php/Tables use the list down the left side to find the table you are after, also the order of the entrys appear in the wiki are a good rule of thumb about how to order the entrys in the corresponding table
Title: Re: table editing
Post by: Getter Robo G on April 26, 2010, 04:49:30 am
Finally? You got an answer 4 minutes after posting the question, how much faster do you want it?

*Ding* Fries are up...    :lol:
Title: Re: table editing
Post by: Commander Zane on April 26, 2010, 11:13:15 am
Finally? You got an answer 4 minutes after posting the question, how much faster do you want it?
Or he could have just posted that he finally got it working after spending three and a half hours fixing his problem.
Title: Re: table editing
Post by: rubixcube on April 29, 2010, 03:22:14 pm
Finally? You got an answer 4 minutes after posting the question, how much faster do you want it?
Or he could have just posted that he finally got it working after spending three and a half hours fixing his problem.

Well no, I had spent a long time trying to fix this problem before I posted it on the forum.