Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2012-10-25 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog
Chat

War3:Source
October 24, 2012, 10:56:38 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://war3source.com/index.php?board=9.0
What is War3Source?: http://war3source.com/index.php?topic=200.0
Sample Stats: http://war3source.com/war3stats
Steam Community Group: http://steamcommunity.com/groups/war3source
War3Source SVN Checkout: http://ownageclan.com/svn/war3source/
War3Source servers: http://www.game-monitor.com/search.php?vars=war3_version=
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Open Up war3source.ini  (Read 409 times)
zero
Full Member
***
Posts: 191



View Profile WWW Email
« on: December 10, 2010, 08:24:42 PM »

Currently we can change the values in war3source.ini but the number of values is hard coded. Can this value be removed so that it can be as high or low as people want. Currently even if I wanted to add support for 2 more levels I can not do anything.

So basically please allow us to do one of two things

1) Let us define as many values in war3source.ini as we want so that we can adjust the killxp and or level required xp for as many levels as we desire.

OR

2) Give us an option to have a level xp multiple where the xp for that level = level*multiplier so if set to 100 it will take 100xp to get level 1.
Logged

Ownz
Developer
Administrator
Hero Member
*****
Posts: 2046



View Profile WWW Email
« Reply #1 on: December 11, 2010, 04:00:58 AM »

1 what happens to default level 16 races?
2 such an xp curve is more linear than exponential
Logged

DarkEnergy
zero
Full Member
***
Posts: 191



View Profile WWW Email
« Reply #2 on: December 11, 2010, 12:10:41 PM »

1. Nothing the default level 16 races would work exactly like before. In fact this option would be exactly what we have not except that it would allow us to hard code more values in for higher level races. Also If you wanted you could use complex formulas to create these values to generate what ever sort of XP curve you want. All I am asking for is that instead of having only 17 variables there can be as many as we want or a very high value like 100+. Entering in the numbers is easy as you just make a formula in excel and copy n paste it in. (I have tested the use of excel already and it copy n pasts just fine if you use notepad++)

One possible simple solution is to just change it so that there is a convar that allows us to set the number of positions that are defined in war3source.ini like war3_maxlevelcurve <#> //Defines the number of levels you wish to support via different xp requirements, all levels above this value will have the xp requirement of the last entry in the list, requires that the list of entries in war3source.ini = this value+1 (to account for level 0)


2. races abilities usually level in a manor that is more linear than exponential so such a system should have no problems with normal balanced races


You could also do some sort of combination where there is a convar that enables one or the other.

I hope that one of these ideas is acceptable as this is the last thing I am waiting on now before putting my server live. Currently my only backup plan is to try to code a plugin that lowers the xp awarded to players at levels above 16 so that I can compensate for the difference, however such as system breaks when the xp awarded drops below 1 (as an integer).
Logged

Ownz
Developer
Administrator
Hero Member
*****
Posts: 2046



View Profile WWW Email
« Reply #3 on: December 11, 2010, 12:17:48 PM »

its a lot of work to implement such a thing, ill think about it, but im focusing on other aspects after my finals
if ur good with sm, theres full control of xp giving via the OnPreGiveXPGold event, so you can override any xp given
Logged

DarkEnergy
zero
Full Member
***
Posts: 191



View Profile WWW Email
« Reply #4 on: December 11, 2010, 01:29:47 PM »

Is there anyway I could edit some files to change the hard code requirements of 17?

For example can I simply edit constants.inc and change
#define MAXLEVELXPDEFINED 16

To whatever number I want and then edit war3source.ini accordingly?

Or do I need to edit anything else. I am willing to make the changes myself if I need to.
Logged

Ownz
Developer
Administrator
Hero Member
*****
Posts: 2046



View Profile WWW Email
« Reply #5 on: December 11, 2010, 01:32:32 PM »

you can, but there will be no support for custom compiled versions and you lose update compatability
i would still recommend making an addon that relies on  OnPreGiveXPGold
Logged

DarkEnergy
zero
Full Member
***
Posts: 191



View Profile WWW Email
« Reply #6 on: December 11, 2010, 02:33:57 PM »

OK, if I go for custom compile I guess I just change that one value and then recompile all the core plugins (do I need to recompile races too?) or can you just tell me what plugins need recompile. I

I will just do this until a permanent solution is found.

As for errors I still plan to have 2 servers and only 1 will be running the custom compiled version. This way I can rule out any problems. Plus I already planned on a second server for testing only so that I can test and balance things before rolling them out to the main server.
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!