Jump to content

Recommended Posts

Posted

There are several things that most people update from time to time through source edit. However, is it really necessary? The battle conf files are a collection of source edits that are placed in easy to reload documents. Why not do the same thing with stuff like max guild size, max vending, max party size, max party size, max produce list, etc... I just picked random stuff, but theres around 30 that are commonly modified. I'm sure theres a reason that you have to update the source files and recompile, but since I have made some of the edits myself and they work fine, I don't see why it can be done on the rAthena scale.

Peopleperson49

  • Upvote 1
Posted

Those constants can't be changed via config because they are used for declaring arrays. As arrays must have a constant size(at least on MSVC), they cannot be initialized via a config file(well, they can but we will need to malloc and free the arrays, imo is alot of useless code).

  • Upvote 2
Posted (edited)

  • Is this idea good? Yes
  • Is this idea useful? Yes
  • Will this idea cause more problems than solutions? A little problem to developers, almost no problem to old users, but it'll be good in future. No problem to new users, and it'll help.
  • Am I the only person that benefits from this? No
  • Will other people not understand what I am posting? Yes, but it's easy to understand.(Usually, if not always someone won't understand, I think this question will always be yes, at least for the next centuries).

Edited by MarkZD
Posted

If you can't make a conf file, which I think would be awesome then my thought was to make a easy to edit diff. Include all the things that people usually edit. You change the settings and then patch the diff. I'm sure there are more than I listed below.

common/mmo.h
Max cart items
Max storage
Max guild storage
Max party
Max friends

map/itemdb.h
Max RANDITEM

map/map.h
Max mob skill
Max vending
Max event queue

map/pc.h
Max skill tree

map/skill.h
Max produce db
Max arrow db

Peopleperson49

Posted

I understand the point your coming from but I don't see this being necessary, the only thing I can see that might be helpful might be adding something like config.c/h where the most useful things are declared that may possibly at later times be updated, instead of having to visit the mmo.h, mob.h and others..

Posted

I understand the point your coming from but I don't see this being necessary, the only thing I can see that might be helpful might be adding something like config.c/h where the most useful things are declared that may possibly at later times be updated, instead of having to visit the mmo.h, mob.h and others..

It's just same idea from the author's topic above your post, you say you don't get the point but you just said the same thing as his second solution, which is to include it all in one file to make it easy to change, but it's the same as the first suggestion too, just without txt file part.

Join the conversation

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

Guest
Reply to this topic...

×   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...