Adding New Weapon help file cant save

Results 1 to 9 of 9
  1. #1
    Enthusiast shywonton is offline
    MemberRank
    Aug 2013 Join Date
    45Posts

    Adding New Weapon help file cant save

    So I'm trying to add a wep to my server, and right now I'm editing Iteminfo.shn
    I've copied over a wep and pasted to the bottom, Given a new ID, Indexname, and Name.
    But this is where I have an issue. Every time I go to save I get the error "Specified Cast is not valid." "Could not save file." I'm really not sure what to do? I've tried saving to a different location, filling in more information on it, and I've even removed the new line and I cant save. If I open another iteminfo I can save it if I don't add a new line.

    Also I've watch PopeJohnPaul's Tut and I've done what he does step by step but I get the same error.


  2. #2
    Valued Member DeadlyAsZyklonB is offline
    MemberRank
    May 2013 Join Date
    FontainebleauLocation
    105Posts

    Re: Adding New Weapon help file cant save

    Quote Originally Posted by shywonton View Post
    So I'm trying to add a wep to my server, and right now I'm editing Iteminfo.shnI've copied over a wep and pasted to the bottom, Given a new ID, Indexname, and Name.But this is where I have an issue. Every time I go to save I get the error "Specified Cast is not valid." "Could not save file." I'm really not sure what to do? I've tried saving to a different location, filling in more information on it, and I've even removed the new line and I cant save. If I open another iteminfo I can save it if I don't add a new line.Also I've watch PopeJohnPaul's Tut and I've done what he does step by step but I get the same error.
    A cell contains wrongs value/characters check all your cells. (Of the new lines ofc) Provide more info, how did you try to add it, which shn editor are you using, and if possible a screen shot of the new line.

  3. #3
    Enthusiast shywonton is offline
    MemberRank
    Aug 2013 Join Date
    45Posts

    Re: Adding New Weapon help file cant save

    Im copying a cell line from above and pasting it to the bottom and changing the ID and InxName
    I'm using SHN Editor v3 got it from http://forum.ragezone.com/f593/relea...editor-684701/

  4. #4
    -.- NextIdea is offline
    MemberRank
    Nov 2012 Join Date
    343Posts

    Re: Adding New Weapon help file cant save

    First use a backup-ed file.
    Just open and save it. If no errors then its good.
    Now add the new weapon rows and save after that. If no error then your problem is solved.

    The cast error is mostly caused because some columns have a null value and that can't be casted.
    Just make sure there is no empty columns, if its number it must have a value of "0" and if text then "-".
    And make sure the columns match when you export them. If text happens to go to number column then that may cause the error too.

  5. #5
    Enthusiast shywonton is offline
    MemberRank
    Aug 2013 Join Date
    45Posts

    Re: Adding New Weapon help file cant save

    Thanks Next, finally got it to save, I think the issue was that when I pasted the line it created an extra blank line at the bottom >.<
    But now my Zone servers keep turning themselves off.

    Also thanks Deadly, I'm still fairly new to this.
    One more question, I take it since my Zone servers refuse to stay on(they start then turn off no warning after about 5 seconds) I broke it? Replaced my shine files to undo everything I did but it still wont stay on.

  6. #6
    Valued Member DeadlyAsZyklonB is offline
    MemberRank
    May 2013 Join Date
    FontainebleauLocation
    105Posts

    Re: Adding New Weapon help file cant save

    Post the assert (rar > zone00) open the last txt files, the name starting with "Assert", without it we can't help, but maybe you have forgotten to delete the new row of ItemInfoServer.shn

  7. #7
    Enthusiast shywonton is offline
    MemberRank
    Aug 2013 Join Date
    45Posts

    Re: Adding New Weapon help file cant save

    I completely replaced my Shine file in my server
    my newest Assert says
    15:05:12 : AssertClass::ac_AssertFail : MobDataBox: : mdb_Load : DataOrder mismatch[1]
    Last edited by shywonton; 04-08-13 at 10:17 PM. Reason: woops wrong line of code

  8. #8
    -.- NextIdea is offline
    MemberRank
    Nov 2012 Join Date
    343Posts

    Re: Adding New Weapon help file cant save

    Then you have replaced with broken files or just missed some files.

    All similar files which contain similar data, the data must be in the same order in all files.
    (ItemInfo,ItemInfoServer,ItemViewInfo) / (MobInfo, ... )

  9. #9
    Enthusiast shywonton is offline
    MemberRank
    Aug 2013 Join Date
    45Posts

    Re: Adding New Weapon help file cant save

    ok I found the error ^^ for some reason when I copied over MobInfoSpecies all the ID's were set to 0,change it back to regular now getting more errors but Ill stop bugging you guys so Ill work on those as much as I can, Thank for the help you guys



Advertisement