Announcement

Collapse
No announcement yet.

2004 error or just issue with demo?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    2004 error or just issue with demo?

    2004 error or just issue with demo?

    Looks like my savetoserver code working on 2003 has some issues on 2004 demo.

    Nothing with the code. But when i save a WeaponClass to a ini file. And then on the next map it errors tring to load it .

    Only thing i can think of is maybe there is a issue in the demo. i hope this is not for the final release.

    example

    Code:
    struct STSWeapons
    {
        var int ID;
    	var class<Weapon> WC;
    };
    var config array<STSWeapons> Weapons;
    If you set weapons[0].ID=0 and weapons[0].WC=XWeapons.AssaultRifle
    do a saveconfig it will saveok but on a reload it will error

    Error: Weapons::ImportText failed in: (Id=0,WC=XWeapons.AssaultRifle)
    Other weapons are ok. just looks like this weapons wtf? and its not like i am setting the weapons its getting it from ingame.

    so if the ini is set to
    Weapons=(Id=0,WC=XWeapons.AssaultRifle)
    Weapons=(Id=1,WC=Onslaught.ONSAVRiL)
    Weapons=(Id=2,WC=Onslaught.ONSGrenadeLauncher)
    Weapons=(Id=3,WC=XWeapons.LinkGun)

    it will fail to load the AssaultRifle but the others are ok. and its not just the first one. does not matter where it is.

    ITs getting the WC from ingame so it is there. in dont know never seen this before, have you?

    What i am doing as a work around is also saving another var called WCSTR as a string name for that weapon. so if wc=none then use the string name and log that "2004 demo failed again"

    what do you think?

    #2
    To work around this i had to also save the weaponclass in a string format, But it has to before the WC or it would not load also.

    If it failed to load then the i code create the WC from the string. Then i log that "2004 demo failed to load again WTF!"

    This has to be in the demo only. So its not that big a deal. I will post back if it does the same thing in final when it comes out.

    Comment


      #3
      Out the the 10 test settings i have 3 are now failing ?

      This is my ini
      Code:
      Weapons=(Id=0,WCStr="XWeapons.SniperRifle",WC=XWeapons.SniperRifle)
      Weapons=(Id=1,WCStr="XWeapons.LinkGun",WC=XWeapons.LinkGun)
      Weapons=(Id=2,WCStr="XWeapons.SuperShockRifle",WC=XWeapons.SuperShockRifle)
      Weapons=(Id=3,WCStr="XWeapons.RocketLauncher",WC=XWeapons.RocketLauncher)
      Weapons=(Id=4,WCStr="XWeapons.BioRifle",WC=XWeapons.BioRifle)
      Weapons=(Id=5,WCStr="XWeapons.AssaultRifle",WC=XWeapons.AssaultRifle)
      Weapons=(Id=6,WCStr="XWeapons.ShockRifle",WC=XWeapons.ShockRifle)
      Weapons=(Id=7,WCStr="XWeapons.Minigun",WC=XWeapons.Minigun)
      Weapons=(Id=8,WCStr="XWeapons.FlakCannon",WC=XWeapons.FlakCannon)
      Weapons=(Id=9,WCStr="XWeapons.ShieldGun",WC=XWeapons.ShieldGun)
      this is from the logs
      Code:
      Error: Weapons::ImportText failed in: (Id=2,WCStr="XWeapons.SuperShockRifle",WC=XWeapons.SuperShockRifle)
      Error: Weapons::ImportText failed in: (Id=5,WCStr="XWeapons.AssaultRifle",WC=XWeapons.AssaultRifle)
      Error: Weapons::ImportText failed in: (Id=9,WCStr="XWeapons.ShieldGun",WC=XWeapons.ShieldGun)
      ScriptLog:  *** 2004 code error can not read from INI afain WTF?  on weapons ID=2
      ScriptLog:  *** 2004 code error can not read from INI afain WTF?  on weapons ID=5
      ScriptLog:  *** 2004 code error can not read from INI afain WTF?  on weapons ID=9
      This sucks :-( ( Again this just a demo so anything can happen)

      Does look like my backup string is working :-)

      Comment


        #4
        Didn't they change some of the weapon references in 2004,
        as well stating that most things would run properly once they are recompiled using the 2004 UCC??


        Hope that helps, if its true..


        Rigear

        EDIT: By UT2004, i am of course talking about the demo & full

        Comment


          #5
          How are we supposed to help you when you won't post any information on how you compile mods for the demo?

          Comment


            #6
            Reminds me of that George Carlin quote:

            "It's like the people who build their houses on an active volcano, and then wonder why they have lava in the living room."

            Wait for the retail Jebus!

            Comment


              #7
              Were you referring to me? ;D

              Comment


                #8
                On NickR's note about how to compile stuff with ut2004.

                Some lucky few, have gotten runtime releases that allow for compiling in 2004.

                Everyone else other than those few, has to wait.


                Rigear

                Comment

                Working...
                X