(05-12-2012, 21:55)pieter Wrote: OnPlayerSpawned() no longer works
damaged and setclient do function though alot of dvars are indeed blocked
I tried OnPlayerSpawned with v1.321 and it worked.
General Help Thread
|
(05-12-2012, 21:55)pieter Wrote: OnPlayerSpawned() no longer works I tried OnPlayerSpawned with v1.321 and it worked.
05-13-2012, 16:10
(This post was last modified: 05-13-2012, 16:11 by [Z00MBY] Alex.)
[20:58:35] WARNING: Unable to allocate 128 Kb at 0x52B1E0 for 0xD85F000
(05-12-2012, 21:55)pieter Wrote: OnPlayerSpawned() no longer works +1
05-14-2012, 04:09
(This post was last modified: 05-14-2012, 04:11 by [Z00MBY] Alex.)
@Nukem Please create a debug version of the addon. I want to see a detailed log of when the player spawn. I have problems with the spawn on the server. Administrators lost access to chat commands. the problem is not constant.
@Nukem it seems OnPlayerSpawned does trigger but there's alot of other stuff not working well
System.MissingMethodException: Method not found: 'Void Addon.Other_t.set_UAVEnabled(Int32)'. when this is set: Client.Other.UAVEnabled = true; also found this: System.NullReferenceException: Object reference not set to an instance of an object. at FunServer.OnPlayerDamaged(ServerClient Attacker, ServerClient Victim, String Weapon, Int32 Damage) at Addon.PluginCode.TriggerDamage(Client_t* Attacker, Client_t* Victim, SByte* szWeapon, Int32 Damage) but have yet to find out where the Weapon - string gets turned into an SByte because it has always been a string, even in current addon docs :/ The UAV thing also has always worked fine, and the damage errors started popping up since last update to mw3 could it be possible you used an older source when making the update / bugfix ?
Had a life, Got a modem..
05-14-2012, 10:05
@pieter did you remove and add addon.dll again as reference? Also the weapon in OnPlayerDamaged is string, the last line is just a function in the addon itself which is triggered by the game.
System.NullReferenceException: Object reference not set to an instance of an object. at FunServer.OnPlayerDamaged(ServerClient Attacker, ServerClient Victim, String Weapon, Int32 Damage) at Addon.PluginCode.TriggerDamage(Client_t* Attacker, Client_t* Victim, SByte* szWeapon, Int32 Damage)
the logs come from my server which has the latest addon
in visual studio all compiles just fine To be sure i've redownloaded the addon dll from the website and restarted all servers, well see how it goes...
Had a life, Got a modem..
05-14-2012, 13:11
Have 4 servers running on 1 machine. After update to 1.322 I noticed that sometimes (few times per hour) one or another server uses 100% of CPU core. Only restart helps. Never had this issue before. I'm running this servers for about more than 6 months, no OS reconfiguration was made.
(05-14-2012, 09:03)pieter Wrote: @Nukem it seems OnPlayerSpawned does trigger but there's alot of other stuff not working well SByte* is used internally by the plugin, as the type suggests, it's a pointer. If you look at the plugin's code, a string is created from the pointer so yeah..... Also, you shouldn't be getting errors for UAVEnabled, you might be referencing an old version of the plugin as @zxz0O0 suggested, the correct definition of the Addon.Other_t.set_UAVEnabled method takes a Boolean, not an Int32 value. A casual conversation between barata and I about Nukem.
05-14-2012, 14:10
'Void Addon.Other_t.set_UAVEnabled(Int32)' is still being logged atm while i AM using bools :/
downloaded the latest version from the site so im kinda flabbergasted...
Had a life, Got a modem..
|
Users browsing this thread: |
6 Guest(s) |