RHODEDOG / thc-rpg

Automatically exported from code.google.com/p/thc-rpg
0 stars 0 forks source link

recomilling files and reloading plugin while there are players at the server makes them loose some skills-lvls #41

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.when there are players on the server.
2.I (the server host) change something in the script and recomile it.
3. The new plugin is inserted and the old one removed.
4. The plugin us ubloaded by "sm plugins unload thc_rpg "
5. The plugin is loaded again by "sm plugins load thc_rpg"

What is the expected output? What do you see instead?
Nothing should change except the changes I made in the script. Instead the 
players currently online looses some of their helth, regen health and vampire 
lvls.

What version of the product are you using? On what operating system?
v 0.8.0 on linux-ubuntu

Original issue reported on code.google.com by michcio9...@gmail.com on 10 Jan 2011 at 4:39

GoogleCodeExporter commented 8 years ago
did you overwrite the database?
when do you reload the plugin?

Original comment by andreaspachler on 10 Jan 2011 at 7:55

GoogleCodeExporter commented 8 years ago
Overwrite the database? .. hm I don't think so. I didn't touch the database 
while reloading the plugin

Original comment by michcio9...@gmail.com on 10 Jan 2011 at 2:53

GoogleCodeExporter commented 8 years ago
did you only copy the new smx file to the pluginfolder?
did you load the plugin before map restart?

Original comment by andreaspachler on 10 Jan 2011 at 6:11

GoogleCodeExporter commented 8 years ago
yes I only loaded it to the pluginfolder after compilation from .sp. And yes I 
loaded it before th map restated

Original comment by michcio9...@gmail.com on 10 Jan 2011 at 8:45

GoogleCodeExporter commented 8 years ago
thc_rpg save some things on mapend oder playerdeath so it could
happend that they are no saved ...

Original comment by andreaspachler on 11 Jan 2011 at 7:13

GoogleCodeExporter commented 8 years ago
ah right .. so anyway while I change something in the script and recompile/add 
a new plugin I should always shut down the server completly and then reopen it 
again? Or yeah maybe just shut the plugin down, changelevel and then load it in 
again? :)

Original comment by michcio9...@gmail.com on 11 Jan 2011 at 7:29

GoogleCodeExporter commented 8 years ago
it is better do restart the whole server...

Original comment by andreaspachler on 11 Jan 2011 at 7:20