What's wrong with My Code? Creating Mods... (1 Viewer)

Kippid

Potential Patron
Joined
Nov 5, 2013
For the life of me I can't figure out how to code this...I know very little about flash. http://www.sdtmods.com/index.php?topic=2906.0
Step 3 the tutorial wasn't very helpful for me. I named my instance and wrote the code as described. How come I keep getting errors?
I did rewrite the code line

import SDTMods.*;
registerMod(NeonCollarAttempt);

charData = "NeonCollarKippidchardata";

modName = "NeonCollarKippidModname";
modCreator = "Kippid";

to match my instance name, but what else am I supposed to be doing?
 

Attachments

  • errorlist.jpg
    errorlist.jpg
    129.1 KB · Views: 122
  • code writing.jpg
    code writing.jpg
    135.1 KB · Views: 107

Synonymous

Content Creator
Joined
Jul 23, 2012
I apologize if the scripting section was confusing, it seems that is where most get lost
Post the .fla so I can take a further look

Kippid said:
import SDTMods.*;
registerMod(NeonCollarAttempt);

charData = "NeonCollarKippidchardata";

modName = "NeonCollarKippidModname";
modCreator = "Kippid";

to match my instance name, but what else am I supposed to be doing?

Code:
import SDTMods.*;

registerMod(neoncollar);

charData = "";

modName = "NeonCollar";
modCreator = "Kippid";

Your instance name is 'NeonCollarAttempt' in the properties, but 'COLLAR' in the code
Just use 'neoncollar' for both :P

Char Data is used to load save data when the mod is used, for example
hair:sd chan,1,1;iris:normal, 138,111,38,1;breasts:28;skin:light; ....etc
Screen_Shot_2013_11_17_at_10_38_13_AM.png


The modName and modCreator will show up in the clothing selection boxes in the game once loaded
It's best to make it short so it fits
Screen_Shot_2013_11_17_at_10_34_16_AM.png


The .fla should remain called 'SDTMod.fla' or 'SDTMod2.fla' and so on
Also it has to be inside the SDTModding folder
Only the published SDTMod.swf can be renamed and removed

You renamed the Collar Template to 'neoncollarkippid'
I'm not sure if that's ok, you'll need it as Collar Template if there's errors
 

Kippid

Potential Patron
Joined
Nov 5, 2013
Thanks man you're my hero. Turns out I was doing everything right. I just saved the fla outside of the folder, and it lost it's guts. I moved it in and sure enough it worked. Thanks again karma from me :) Look forward to my mods ;) They will be alot better than the nooby first attempt.
 

Users who are viewing this thread

Top


Are you 18 or older?

This website requires you to be 18 years of age or older. Please verify your age to view the content, or click Exit to leave.