Page 1 of 3

[227g31] ServerSaveInventory function

Posted: Fri Apr 09, 2010 12:13 am
by Hyper
While you're at it you can test this option on the server too:
[Engine.GameEngine]
bServerSaveInventory=True
ServerPackages=...
Saving travel inventory data to an ini file, so that players in your server can keep their inventory after a crash.
I have bServerSaveInventory=True.

I manually shut down the server, and when it restarted I did not get my inventory back. Why is that?

Re: [227g25] ServerSaveInventory function

Posted: Fri Apr 09, 2010 12:23 am
by Hyper
I simulated an unexpected crash by killing the Unreal.exe server process, and when I restarted I did not get my inventory back. Something does not seem to work here.

Settings:
[Engine.GameEngine]
CacheSizeMegs=4
UseSound=False
bDeleteTravelInvOnLoad=False
bServerSaveInventory=True

Re: [227g25] ServerSaveInventory function

Posted: Fri Apr 09, 2010 1:14 am
by []KAOS[]Casey
you actually have to travel a map for it to work, if you get inventory, don't travel, close server, it will record nothing.

Re: [227g25] ServerSaveInventory function

Posted: Fri Apr 09, 2010 5:17 pm
by Hyper
you actually have to travel a map for it to work, if you get inventory, don't travel, close server, it will record nothing.
The conditions I posted were AFTER several map switches. (The inventory did get saved in the InventoryData.ini file) but somehow it does not get 'used' after a server restart/crash.

Re: [227g25] ServerSaveInventory function

Posted: Fri Apr 09, 2010 6:42 pm
by []KAOS[]Casey
I'll go try it with different gametypes and see how it changes things, I don't think it should do anything.

btw. g_26 is up

edit: Link removed

Re: [227g25] ServerSaveInventory function

Posted: Fri Apr 09, 2010 6:59 pm
by Hyper
I'll go try it with different gametypes and see how it changes things, I don't think it should do anything.

btw.

http://www.klankaos.com/227g26ConformedSystem.rar , g_26 is up
Could there be a conflict with something like the JCoopZ GiveItems or the JCoopZ inventory restore function? (Restores inventory after you die and respawn withour reconnecting)

Re: [227g25] ServerSaveInventory function

Posted: Fri Apr 09, 2010 7:06 pm
by Smirftsch
conformed version not needed, conformed it already against 227f as promised :)

Re: [227g25] ServerSaveInventory function

Posted: Fri Apr 09, 2010 7:10 pm
by []KAOS[]Casey
oh shit, I feel dumb lol

I'll remove the link and reinstall my version.

Also: I tried JCoopZ1 with the inventory retain features and it doesn't seem to effect it. I'll poke around more

Have you tried using a different name? Maybe your name doesn't parse correctly? I'm not 100% sure.

Re: [227g25] ServerSaveInventory function

Posted: Fri Apr 09, 2010 7:11 pm
by Hyper
conformed version not needed, conformed it already against 227f as promised :)
Great! I'll update!

I suggest to keep the beta's compatible with the latest available client version to facilitate public testing. (If you did not plan to do this already)

Re: [227g25] ServerSaveInventory function

Posted: Fri Apr 09, 2010 7:12 pm
by Hyper
oh nuts, I feel dumb lol

I'll remove the link and reinstall my version.

Also: I tried JCoopZ1 with the inventory retain features and it doesn't seem to effect it. I'll poke around more

Have you tried using a different name? Maybe your name doesn't parse correctly? I'm not 100% sure.
My name is Hyper.nl which should not cause any problems I think. (No weird chars in there) But I can try...

Re: [227g25] ServerSaveInventory function

Posted: Fri Apr 09, 2010 7:16 pm
by []KAOS[]Casey
I inserted one giveitem and now the inventory travel does not work.

Zombie? :)

edit:

I would suggest checking out AcceptInventory

Re: [227g25] ServerSaveInventory function

Posted: Fri Apr 09, 2010 7:18 pm
by Hyper
Now testing under name HyperTest:

InventoryData.ini

Code: Select all

[HyperTest]
jCoopZ1.jzMaleThree=jzMaleThree0\TScore|0.2=27\TPlayerIP|0.12=192.168.1.64\TLocalID|0.8=49956388\TPlayerUID|0.11=-1428685958\TraveledInv|0.13=~Health~=2000\TraveledInv|1.32=UnrealShare.Translator:0;0-Idle2\TraveledInv|2.24=test.GemDagger:0;0-Idle2\TraveledInv|3.35=Aura.AuraSearchLightWhite:0;0-Idle2\TraveledInv|4.31=AuraMusicBox.MusicBox:0;0-Idle2\TraveledInv|5.34=AuraBeltNL.BarrierBelt:750;0-Idle2\TraveledInv|6.34=UnrealShare.SCUBAGear:1187;0-Idle2\Weapon|0.16=BlizzardBastard1\SelectedItem|0.12=Translator35\Health|0.4=2000
UnrealShare.Translator=Translator35
test.GemDagger=GemDagger0\SavedScore|0.2=27
Aura1.AuraPistol=AuraPistol0\PowerLevel|0.1=4
Aura.AuraSearchLightWhite=AuraSearchLightWhite0
Aura.AmpMinigun=AmpMinigun0\AutoSwitchPriority|0.2=27
AuraMusicBox.MusicBox=MusicBox0
AuraBeltNL.BarrierBelt=BarrierBelt0
Aura1.GTMI=GTMI0
UnrealShare.SCUBAGear=SCUBAGear0\Charge|0.4=1187
Aura.BlizzardBastard=BlizzardBastard1
I killed the Unreal.exe server process...
I reconnected...

I only have my default inventory.

Re: [227g25] ServerSaveInventory function

Posted: Fri Apr 09, 2010 7:42 pm
by Hyper
I'll go try it with different gametypes and see how it changes things, I don't think it should do anything.

btw. g_26 is up

edit: Link removed
I updated to 227fg26. (All servers)

Re: [227g25] ServerSaveInventory function

Posted: Fri Apr 09, 2010 8:38 pm
by Zombie
I inserted one giveitem and now the inventory travel does not work.

Zombie? :)

edit:

I would suggest checking out AcceptInventory
According to you and .:..: the travel data is being saved in the INI file identically to how it was in program memory. There must be a difference somewhere, like the restore to program memory, or else the behavior would be unchanged as if the server never crashed/restarted.

Little has changed in JCoopZ AcceptInventory() compared to the parent in GameInfo. The first pass on the AutoRunCommand array using ConsoleCommand() is there after the call to AddDefaultInventory(), and that is it. GiveItem is processed as the last standard function call in JCoopZ AddDefaultInventory() like it is in other JCoop[x] releases.


-Zombie

Re: [227g25/26] ServerSaveInventory function

Posted: Mon Apr 26, 2010 11:57 am
by Hyper
What is the status of this one?

Re: [227g25/26] ServerSaveInventory function

Posted: Wed May 12, 2010 12:24 pm
by Hyper
What is the status of this one?

Re: [227g25/26] ServerSaveInventory function

Posted: Wed May 12, 2010 1:30 pm
by Smirftsch
we updated it again today and should work flawlessly now :)

Re: [227g25/26] ServerSaveInventory function

Posted: Wed May 12, 2010 5:28 pm
by Hyper
we updated it again today and should work flawlessly now :)
Great work!  ;) :)

Re: [227g25/26] ServerSaveInventory function

Posted: Thu May 20, 2010 8:49 pm
by Hyper
I updatred to 227g30 and it does not work yet for me. The inventory date gets recorded like the previous version but it does not get restored when the server actually restarts:

bServerSaveInventory=True


InventoryData.ini

Code: Select all

[Hyper.nl]
jCoopZ1.jzMaleThree=jzMaleThree1\TScore|0.2=39\TPlayerIP|0.12=192.168.1.64\TLocalID|0.8=49956388\TPlayerUID|0.11=-1428685958\TraveledInv|0.13=~Health~=2085\TraveledInv|1.31=THlamer.THlamerFlare:10;0-Idle2\TraveledInv|2.34=AuraBeltNL.BarrierBelt:378;0-Idle2\TraveledInv|3.31=AuraMusicBox.MusicBox:0;0-Idle2\TraveledInv|4.31=Aura.AuraSearchLightW:0;0-Idle2\TraveledInv|5.24=test.GemDagger:0;0-Idle2\TraveledInv|6.32=UnrealShare.Translator:0;0-Idle2\TraveledInv|7.33=UMSSpaceMarine.tripwire:0;1-Idle2\TraveledInv|8.29=UnrealShare.Armor:250;0-Idle2\TraveledInv|9.30=test.BlessedArmor:1000;0-Idle2\TraveledInv|10.34=UnrealShare.ShieldBelt:250;0-Idle2\TraveledInv|11.29=UnrealShare.ShellBox:0;0-1500\TraveledInv|12.43=UMSSpaceMarine.AMarineSuit:1000;0-Activated\Weapon|0.11=AmpMinigun2\SelectedItem|0.12=AMarineSuit0\Health|0.4=2085
THlamer.THlamerFlare=THlamerFlare4
AuraBeltNL.BarrierBelt=BarrierBelt2\Charge|0.3=378
AuraMusicBox.MusicBox=MusicBox2
Aura.AmpMinigun=AmpMinigun2\AutoSwitchPriority|0.2=24
Aura.AuraSearchLightW=AuraSearchLightW2
Aura1.AuraPistol=AuraPistol3
test.GemDagger=GemDagger2\SavedScore|0.2=39
UnrealShare.Translator=Translator11
UMSSpaceMarine.tripwire=tripwire0\NumCopies|0.1=1
Aura1.AuraASMD=AuraASMD4
UnrealShare.Armor=Armor6
test.BlessedArmor=BlessedArmor0
Aura.AmpMag=AmpMag3
UnrealShare.ShieldBelt=ShieldBelt5
AKcoop2.karimea=karimea0\AmmoType|0.9=ShellBox6
UnrealShare.ShellBox=ShellBox6\AmmoAmount|0.4=1500
UMSSpaceMarine.AMarineSuit=AMarineSuit0\PowerCharge|0.4=4490\bActive|0.4=True
I only get the JCoopZ GiveItems, not my previous inventory which is recorded here.

Re: [227g30] ServerSaveInventory function

Posted: Thu May 20, 2010 10:26 pm
by []KAOS[]Casey
Weird. whenever I tested it, it seemed to work after the fix of the "Forged" error.

Re: [227g30] ServerSaveInventory function

Posted: Fri May 21, 2010 6:53 am
by Smirftsch
Indeed weird. Whats the difference now between our test setup and your server. The answer will be the key for the problem I think...
Can you send me your setup Hyper? Will try to find out.

Re: [227g30] ServerSaveInventory function

Posted: Fri May 21, 2010 3:32 pm
by Hyper
Indeed weird. Whats the difference now between our test setup and your server. The answer will be the key for the problem I think...
Can you send me your setup Hyper? Will try to find out.
PM sent.

Re: [227g30] ServerSaveInventory function

Posted: Thu Jun 03, 2010 8:30 pm
by Hyper
Is this one addressed in 227G31 as well? Or is is still under investigation?

Re: [227g30] ServerSaveInventory function

Posted: Thu Jun 10, 2010 6:38 am
by Hyper
Is this one addressed in 227G31 as well? Or is is still under investigation?
*kick*

Re: [227g30] ServerSaveInventory function

Posted: Thu Jun 10, 2010 10:05 am
by Smirftsch
thx for reminder. Was a bit busy the last days to find a performance bug in 227g. Also increased overall performance a few percent. Will have another look before g31 :)