Log in

View Full Version : Anyone working on a modding tool yet?


Phoenix-D
October 29th, 2003, 05:41 PM
Sj has a slot modder and a store modder out; I don't know of anything else.

Drax
October 30th, 2003, 02:07 AM
I was wondering if anyone has started work on a modding utility for the data files in starfury - like the editors for se4. Or should I just start up VB and make on myself?

Wydraz
November 3rd, 2003, 06:28 PM
http://forum.shrapnelgames.com/images/icons/icon8.gif

Suicide Junkie
November 3rd, 2003, 07:27 PM
I have a nifty VB library of functions for working with MM style datafiles if you want.

Ed Kolis
November 3rd, 2003, 08:07 PM
You do? VB 6, VB.NET, or some other Version? Post them, I might be able to use those... nah, I never get anything done http://forum.shrapnelgames.com/images/icons/tongue.gif

Suicide Junkie
November 3rd, 2003, 10:17 PM
http://imagemodserver.mine.nu/miscellaneous/VB-MM-functions.zip

Most of it is meant for dealing with one-liner strings from the text files.
For example,
X$ = addvalue(X$,n)
This looks for the := and then adds n to the number it finds there. Non-numbers or words count as zero and are changed into just n.

"Get/Set first pos number" is for those "Ability # name := blah blah" type lines.
The "Get/Set nth value" functions is a generalization of the previous, and is great for working on the damage at range line.

Ed Kolis
November 4th, 2003, 03:42 AM
You don't like comments, do you, SJ? http://forum.shrapnelgames.com/images/icons/tongue.gif

I've been spoiled by the latest IDEs' "you type a dot after something and it tells you all its properties and methods" and "you type an opening parenthesis and it tells you all the function's arguments"... and I STILL need comments to jog my memory! http://forum.shrapnelgames.com/images/icons/icon10.gif

Suicide Junkie
November 4th, 2003, 05:07 AM
Heh. What's a comment, and how do I do a goto in this language? http://forum.shrapnelgames.com/images/icons/tongue.gif

Instar
November 4th, 2003, 05:36 PM
Goto sucks!! EWwwwwwwwwwwwww!

Ed Kolis
November 4th, 2003, 07:51 PM
Though there are times when I am tempted to use it instead of more "sophisticated" programming techniques... I mean, which is easier to read:

Old-Style Quick & Dirty Gotos
</font><blockquote><font size="1" face="sans-serif, arial, verdana">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">foreach (Array innerArray in outerArray)
{
foreach (Item i in innerArray)
{
if (i == target)
{
foundit = true;
goto done;
}
}
}
done:</pre><hr /></blockquote><font size="2" face="sans-serif, arial, verdana">"Sophisticated" Procedural Programming Workaround
</font><blockquote><font size="1" face="sans-serif, arial, verdana">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">foreach (Array innerArray in outerArray)
{
foreach (Item i in innerArray)
{
if (i == target)
{
foundit = true;
// can't break out of more than one loop at once without a goto!
break;
}
}
// so I have to check again in each loop level to avoid wasting time searching for something I already found!
// not too annoying with only 2 levels, but with more... :eek:
if (foundit == true)
break;
}</pre><hr /></blockquote><font size="2" face="sans-serif, arial, verdana">OK, that wasn't the best example (when was the Last time you had more than 3 levels of nested loops anyway? http://forum.shrapnelgames.com/images/smilies/rolleyes.gif ) but there ARE times when a goto would come in handy, but I couldn't make myself touch it for fear of being shunned for life http://forum.shrapnelgames.com/images/icons/tongue.gif

Ed Kolis
November 5th, 2003, 02:12 AM
Heh... at least it's a goto you want, and not a comefrom http://forum.shrapnelgames.com/images/icons/icon10.gif