World Server Autosaving?

Place your questions about osirose here

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

World Server Autosaving?

Postby magicrox on Thu Jun 26, 2008 8:15 am

Is there a possibility to make the world server autosave every so often? My world server crashed and it caused all the data to be lost. I see an autosave function thing in the worldserver.conf but it doesn't seem to be doing anything when i change it. it was normally at 1 so i changed it to 60 (like every 60 seconds to autosave)

If anyone has a fix for this please reply.

Thanks,
magicrox
magicrox
Pomic
Pomic
 
Posts: 137
Joined: Sun Jun 22, 2008 6:28 pm

Re: World Server Autosaving?

Postby Drakia on Thu Jun 26, 2008 9:47 am

Wow, crashing OSiRose, that's a new one ;) Do you know what caused the crash? It'd be better to fix the crash above an auto-save workaround, but as far as I know, things are only saved when someone logs out.
My favorite skill is scaring new users away.
If you haven't SEARCHED expect me to yell at you.
Image
Drakia
ospRose dev team
ospRose dev team
 
Posts: 1614
Joined: Tue Sep 18, 2007 6:53 am
Location: Nanaimo, BC, Canada

Re: World Server Autosaving?

Postby PurpleYouko on Thu Jun 26, 2008 2:37 pm

Hmm I didn't realize the autosave function did not work in osirose.
I know it does in osrose. i wonder what is different?
May have to check into that. possibly implement a new form of saving as Lmame has done for osrose rev 81

A simple fix may be, rather than an auto-save, just trigger a save on a character by character basis whenever something momentous happens. A level up or finishing a quest or something.
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Re: World Server Autosaving?

Postby soccerstar on Thu Jun 26, 2008 3:46 pm

autosave does work in irose the autosave value you changed should be set to 1 (1=on 0=off) farther down there is a line that says autosavetime or something like that and that value is in seconds
Search, Just Do It.
User avatar
soccerstar
Clown
Clown
 
Posts: 501
Joined: Tue Jun 17, 2008 12:46 am

Re: World Server Autosaving?

Postby magicrox on Thu Jun 26, 2008 5:35 pm

Well, the thing that triggered the crash was the /mon command. Idk why it's cashing the world server to crash but it's the last thing that happens every time before a world server crash. Does anyone know why this is happening?

Edit: Here is my worldserver.conf....I see no autosavetime, just an autosave which I have set to 1.
  1. mysql_pass=root
  2. mysql_database=irose
  3. mysql_port=3306
  4. AutoQueryTime=600
  5.  
  6. [SERVERDATA]
  7. serverid=2
  8. servertype=2
  9. serverip=76.98.216.146
  10. serverport=29200
  11. servername=Poseidon
  12. maxconnections=500
  13. parentid=1
  14. connection=2
  15. lanip=127.0.0.1
  16. lansubmask=127.0.0.1
  17.  
  18. [WORLDSERVER]
  19. accesslevel=100
  20. exp_rate=3
  21. drop_rate=1
  22. drop_type=2
  23. zuly_rate=1
  24. welcome_msg=Welcome to AquaROSE!
  25. autosave=1
  26. savetime=3600
  27. mapdelay=10
  28. visualdelay=200
  29. worlddelay=700
  30. partygap=10
  31. maxstat=300
  32. fairy=1
  33. fairystay=45
  34. fairywait=30
  35. fairytestmode=0
  36. playerdmg=230
  37. monsterdmg=78
  38. cfmode=0
  39.  
  40. [server2server]
  41. charip=127.0.0.1
  42. charport=29110
  43. WorldsPort=29210
  44.  
  45. [PASSWORDS]
  46. loginpass=789456
  47. charpass=456123
  48. worldpass=321654
magicrox
Pomic
Pomic
 
Posts: 137
Joined: Sun Jun 22, 2008 6:28 pm

Re: World Server Autosaving?

Postby Drakia on Thu Jun 26, 2008 5:53 pm

Right underneath autosave is savetime. It's set to 3600 seconds, which is an hour.
Also, /mon will crash the server if you do something like put in an invalid monster ID. You must be careful with the GM commands, a lot of them don't have bounds checking.
My favorite skill is scaring new users away.
If you haven't SEARCHED expect me to yell at you.
Image
Drakia
ospRose dev team
ospRose dev team
 
Posts: 1614
Joined: Tue Sep 18, 2007 6:53 am
Location: Nanaimo, BC, Canada

Re: World Server Autosaving?

Postby magicrox on Thu Jun 26, 2008 6:31 pm

Oh. I'm blind haha. as for the /mon command I typed in "/mon 1 1" That command is supposed to summon one jelly bean. Instead of doing that it just crashes the server. Is there a way to fix this in the server files or something or should i just tell my GMs not to use the /mon command? Also, another issue I'm having. there seems to be no time limit on items dropped on the ground. They stay there until the server is restarted or someone picks them up. Is this fixable/changeable?

~magicrox
magicrox
Pomic
Pomic
 
Posts: 137
Joined: Sun Jun 22, 2008 6:28 pm

Re: World Server Autosaving?

Postby soccerstar on Thu Jun 26, 2008 6:44 pm

the command is bugged for now, i am trying to work on it. even if you put the command correctly it will still DC
Search, Just Do It.
User avatar
soccerstar
Clown
Clown
 
Posts: 501
Joined: Tue Jun 17, 2008 12:46 am

Re: World Server Autosaving?

Postby magicrox on Thu Jun 26, 2008 7:25 pm

I see.....good luck with that. Does anyone know how to fix the unlimited drop time bug?....like how the items on the ground don't disappear until the server restarts or whatever.
magicrox
Pomic
Pomic
 
Posts: 137
Joined: Sun Jun 22, 2008 6:28 pm

Re: World Server Autosaving?

Postby Arnold on Thu Jun 26, 2008 9:19 pm

to fix the /mon command in worldmap.cpp at line 115 put /* infront of if(getdropdata &&owner==0)
and at line 124 after } put */
and recompile
magicrox wrote:I see.....good luck with that. Does anyone know how to fix the unlimited drop time bug?....like how the items on the ground don't disappear until the server restarts or whatever.

uhm I changed the time to 1800 it was 30 seconds I think
Arnold
osiRose dev
osiRose dev
 
Posts: 340
Joined: Sun Sep 09, 2007 8:50 pm
Location: pebkac

Next

Return to Question Zone

Who is online

Users browsing this forum: No registered users and 4 guests