1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

What's wrong with My Code? Creating Mods...

Discussion in 'Help' started by Kippid, Nov 17, 2013.

  1. Kippid

    Kippid Potential Patron

    Joined:
    Nov 5, 2013
    Messages:
    16
    Likes Received:
    0
    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?
     

    Attached Files:

  2. Synonymous

    Synonymous Swell Supporter Content Creator

    Joined:
    Jul 23, 2012
    Messages:
    309
    Likes Received:
    22
    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

    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
    [​IMG]

    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
    [​IMG]

    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
     
  3. Kippid

    Kippid Potential Patron

    Joined:
    Nov 5, 2013
    Messages:
    16
    Likes Received:
    0
    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.