Jump to content
  • 0

Changing level max


Question

Posted

Hello everyone !

 

I'm configuring an offline ragnarok server. And i want to change the max level from 99 to 999, It's a pre-renewal server.

I looked for a tutorial ,so I changed the value in db/import/job_exp.txt and added the xp table. The problem is, I need to compile the mapserver (from what i've understand).

So i downloaded Visual Studio Community 2017, but when i try to build the mapserver it tells me that "The windows SDK 8.1 was not found".

The server was already compiled when i downloaded it so i don't know how it works.

Is it possible to change the max level without compiling ?

Is there another way to compile it ?

If not, how can i solve the windows SDK issue ?

 

Sorry for my bad english.

Thanks

6 answers to this question

Recommended Posts

  • 0
Posted

Thanks for your answer.

But i can't manage to install Windows SDK 8.1 , it always comes up with an error on the installer. I tried to uninstall the Visual C++ redistribuable (like recommended by the support), but it still doesn't work.

Is there another tool to compile ? Or another solution ?

  • 0
Posted
22 minutes ago, Flitch said:

Thanks for your answer.

But i can't manage to install Windows SDK 8.1 , it always comes up with an error on the installer. I tried to uninstall the Visual C++ redistribuable (like recommended by the support), but it still doesn't work.

Is there another tool to compile ? Or another solution ?

Upgrade your OS

  • 0
Posted (edited)

I upgraded my OS and i managed to compile my server. But i can't change the max level to 999. When i start the server, the mapserv tells me that the max level is 175.

I've changed the max level to 999 in :

src/map/map.h

src/map/battle.c

conf/battle/client.conf

db/pre-re/job_exp.txt

When i change the max level from the job_exp file to 175 it works.

What can i do to solve this error ?

Thanks for your help.

 

 

Edited by Flitch
  • 0
Posted

I'm adding a few news about my problem.

Whenever i launch the renewal server (the mapserv, charserv and loginserv), the level max is 999 as i want. But if i launch the pre-renewal server (the mapserv_prere, charserv_prere and loginserv_prere), i got those errors :

[Warning]: Value for setting 'max_lv': 999 is invalid (min:0 max:175)! Defaulting to 99...

[Error]: pc_readdb_job_exp: Invalid maxlevel 999 specified.
[Error]: sv_readdb: Could not process contents of line 14 of "db/pre-re/job_exp.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 16 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 22 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 25 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 28 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 31 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 34 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 37 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 40 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 43 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 46 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 49 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 52 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 55 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 58 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 61 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 64 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 67 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 70 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 73 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 76 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 108 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 111 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 114 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 117 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 120 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 123 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 126 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 129 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 132 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 135 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 138 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 141 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 144 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 147 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 150 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 153 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 156 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 159 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 162 of "db/pre-re/job_basehpsp_db.txt".
[Error]: pc_readdb_job_basehpsp: Invalid start level 1 specified.
[Error]: sv_readdb: Could not process contents of line 165 of "db/pre-re/job_basehpsp_db.txt".

[Warning]: Class High Novice (4001) does not have a base exp table.
[Warning]: Class High Swordsman (4002) does not have a base exp table.
[Warning]: Class High Magician (4003) does not have a base exp table.
[Warning]: Class High Archer (4004) does not have a base exp table.
[Warning]: Class High Acolyte (4005) does not have a base exp table.
[Warning]: Class High Merchant (4006) does not have a base exp table.
[Warning]: Class High Thief (4007) does not have a base exp table.
[Warning]: Class Lord Knight (4008) does not have a base exp table.
[Warning]: Class High Priest (4009) does not have a base exp table.
[Warning]: Class High Wizard (4010) does not have a base exp table.
[Warning]: Class Whitesmith (4011) does not have a base exp table.
[Warning]: Class Sniper (4012) does not have a base exp table.
[Warning]: Class Assassin Cross (4013) does not have a base exp table.
[Warning]: Class Lord Knight (4014) does not have a base exp table.
[Warning]: Class Paladin (4015) does not have a base exp table.
[Warning]: Class Champion (4016) does not have a base exp table.
[Warning]: Class Professor (4017) does not have a base exp table.
[Warning]: Class Stalker (4018) does not have a base exp table.
[Warning]: Class Creator (4019) does not have a base exp table.
[Warning]: Class Clown (4020) does not have a base exp table.
[Warning]: Class Gypsy (4021) does not have a base exp table.
[Warning]: Class Paladin (4022) does not have a base exp table.

And when i change the text in the showerror part in the pc.c file and then compile the server, the showerror is still the default one.

	maxlvl = atoi(fields[0]);
	if(maxlvl > MAX_LEVEL || maxlvl<1){
		ShowError("pc_readdb_job_exp: Invalid maxlevel %d specified. MAX_LEVEL=%d\n", maxlvl, MAX_LEVEL);
		return false;
	}

So, is my pre-renewal part not compiling ?

Does anyone know the solution to this ?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...