Jump to content
  • 0

How to change trunk?


Dolphin86

Question


  • Group:  Members
  • Topic Count:  256
  • Topics Per Day:  0.06
  • Content Count:  707
  • Reputation:   16
  • Joined:  01/07/12
  • Last Seen:  

hello guys, its DolphinCute again *Cute?*

 

well i need to ask currently im using 

rathena - Revision 17704

 

and i found out that that trunk run on renewal database, so how can i change it to pre renewal?

because i found on that trunk db there is pre folder and re folder 

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  18
  • Reputation:   0
  • Joined:  02/12/14
  • Last Seen:  

Please get the latest revision from https://github.com/rathena/rathena.

To disable all renewal option, uncomment the line '#define PRERE' in src\config\renewal.h

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  256
  • Topics Per Day:  0.06
  • Content Count:  707
  • Reputation:   16
  • Joined:  01/07/12
  • Last Seen:  

But what about all the account that have been created? Is there a way that i can save them including the item and zeny?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  256
  • Topics Per Day:  0.06
  • Content Count:  707
  • Reputation:   16
  • Joined:  01/07/12
  • Last Seen:  

Please get the latest revision from https://github.com/rathena/rathena.

To disable all renewal option, uncomment the line '#define PRERE' in src\config\renewal.h

 

i am using the latest revision, and i have remove //#define PRERE, will that revert back my trunk to pre re?

because i cant really tell the different? 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  18
  • Reputation:   0
  • Joined:  02/12/14
  • Last Seen:  

i am using the latest revision, and i have remove //#define PRERE, will that revert back my trunk to pre re?

because i cant really tell the different?

No, I didn't mean remove //#define PRERE, I meant uncomment //#define PRERE, so it'll become #define PRERE.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  256
  • Topics Per Day:  0.06
  • Content Count:  707
  • Reputation:   16
  • Joined:  01/07/12
  • Last Seen:  

well i did that, so now my server will be pre renewal?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  115
  • Reputation:   14
  • Joined:  08/13/13
  • Last Seen:  

If you want to disable renewal go to src/config/renewal.h 

 

/// game renewal server mode
/// (disable by commenting the line)
// Copyright (c) rAthena Dev Teams - Licensed under GNU GPL
// For more information, see LICENCE in the main folder
#ifndef _CONFIG_RENEWAL_H_
#define _CONFIG_RENEWAL_H_

//quick option to disable all renewal option, used by ./configure
//#define PRERE
#ifndef PRERE
/**
 * rAthena configuration file (http://rathena.org)
 * For detailed guidance on these check http://rathena.org/wiki/SRC/config/
 **/

/**
 * @INFO: This file holds general-purpose renewal settings, for class-specific ones check /src/config/classes folder
 **/

/// game renewal server mode
/// (disable by commenting the line)
///
/// leave this line to enable renewal specific support such as renewal formulas
//#define RENEWAL

/// renewal cast time
/// (disable by commenting the line)
///
/// leave this line to enable renewal casting time algorithms
/// cast time is decreased by DEX * 2 + INT while 20% of the cast time is not reduced by stats.
/// example:
///  on a skill whos cast time is 10s, only 8s may be reduced. the other 2s are part of a
///  "fixed cast time" which can only be reduced by specialist items and skills
//#define RENEWAL_CAST

/// renewal drop rate algorithms
/// (disable by commenting the line)
///
/// leave this line to enable renewal item drop rate algorithms
/// while enabled a special modified based on the difference between the player and monster level is applied
/// based on the http://irowiki.org/wiki/Drop_System#Level_Factor table
//#define RENEWAL_DROP

/// renewal exp rate algorithms
/// (disable by commenting the line)
///
/// leave this line to enable renewal item exp rate algorithms
/// while enabled a special modified based on the difference between the player and monster level is applied
//#define RENEWAL_EXP

/// renewal level modifier on damage
/// (disable by commenting the line)
///
// leave this line to enable renewal base level modifier on skill damage (selected skills only)
//#define RENEWAL_LVDMG

/// renewal ASPD [malufett]
/// (disable by commenting the line)
///
/// leave this line to enable renewal ASPD
/// - shield penalty is applied
/// - AGI has a greater factor in ASPD increase
/// - there is a change in how skills/items give ASPD
/// - some skill/item ASPD bonuses won't stack
//#define RENEWAL_ASPD

#endif

#endif // _CONFIG_RENEWAL_H_
Edited by Jerhia
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  41
  • Reputation:   1
  • Joined:  10/17/13
  • Last Seen:  

 

If you want to disable renewal go to src/config/renewal.h 

 

/// game renewal server mode
/// (disable by commenting the line)
// Copyright (c) rAthena Dev Teams - Licensed under GNU GPL
// For more information, see LICENCE in the main folder
#ifndef _CONFIG_RENEWAL_H_
#define _CONFIG_RENEWAL_H_

//quick option to disable all renewal option, used by ./configure
//#define PRERE
#ifndef PRERE
/**
 * rAthena configuration file (http://rathena.org)
 * For detailed guidance on these check http://rathena.org/wiki/SRC/config/
 **/

/**
 * @INFO: This file holds general-purpose renewal settings, for class-specific ones check /src/config/classes folder
 **/

/// game renewal server mode
/// (disable by commenting the line)
///
/// leave this line to enable renewal specific support such as renewal formulas
//#define RENEWAL

/// renewal cast time
/// (disable by commenting the line)
///
/// leave this line to enable renewal casting time algorithms
/// cast time is decreased by DEX * 2 + INT while 20% of the cast time is not reduced by stats.
/// example:
///  on a skill whos cast time is 10s, only 8s may be reduced. the other 2s are part of a
///  "fixed cast time" which can only be reduced by specialist items and skills
//#define RENEWAL_CAST

/// renewal drop rate algorithms
/// (disable by commenting the line)
///
/// leave this line to enable renewal item drop rate algorithms
/// while enabled a special modified based on the difference between the player and monster level is applied
/// based on the http://irowiki.org/wiki/Drop_System#Level_Factor table
//#define RENEWAL_DROP

/// renewal exp rate algorithms
/// (disable by commenting the line)
///
/// leave this line to enable renewal item exp rate algorithms
/// while enabled a special modified based on the difference between the player and monster level is applied
//#define RENEWAL_EXP

/// renewal level modifier on damage
/// (disable by commenting the line)
///
// leave this line to enable renewal base level modifier on skill damage (selected skills only)
//#define RENEWAL_LVDMG

/// renewal ASPD [malufett]
/// (disable by commenting the line)
///
/// leave this line to enable renewal ASPD
/// - shield penalty is applied
/// - AGI has a greater factor in ASPD increase
/// - there is a change in how skills/items give ASPD
/// - some skill/item ASPD bonuses won't stack
//#define RENEWAL_ASPD

#endif

#endif // _CONFIG_RENEWAL_H_

 

Sir i wanna ask if i just do the same like what you did on this file? 

all the (#define RENEWAL) i have to put "//" for it to disable the renewal .. RIGHT ?

and for i to make my server Pre Renewal is ill make 

#define PRERE

#ifndef PRERE

like this Right ? Thanks in advance more power ! ^^

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  18
  • Reputation:   0
  • Joined:  02/12/14
  • Last Seen:  

//quick option to disable all renewal option, used by ./configure
//#define PRERE
#ifndef PRERE

Like the comment said, if you want to disable all renewal options, just remove '//' before '#define PRERE', so this ONE line is uncomment, no need to touch other lines. Your server will run in pre-renewal mode. The C code means:

"I defined PRERE (so I'm wanting this server running in pre-renewal mode. After that line is a condition check, #ifndef PRERE means 'if not defined PRERE', of course I defined PRERE above so that check is false, and everything after that check is skipped.

In the original file, #define PRERE is commented (//#define PRERE) so when the check occurs, PRERE is not defined before, and it return true (if not defined? check), and every options which define renewal settings after that check is enable."

The commented lines makes no sense to a C compiler, its sole purpose is to make code easier to read for human and make auto-doc tools do their job. If A then B is something like normal English, so if A is wrong we do not do B and vice versa.

Link to comment
Share on other sites

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.

×
×
  • Create New...