Private server admin questions.

Discussion about topics that don't fit elsewhere.
Post Reply
fingers
Posts: 3
Joined: Mon Jan 18, 2016 9:03 pm

Private server admin questions.

Post by fingers »

Hi. I'm messing around with a private server and I can't figure out where in the source to change how many towns spawn. For instance if I want to remove them all besides Bree can I do that? If I make a new town file can I have the server only spawn it? Same question really about classes, items, I know where to edit them or add to them. I just can't seem to see where to tell the server about it.
C. Blue
Developer
Posts: 388
Joined: Sun Dec 13, 2009 6:28 pm

Re: Private server admin questions.

Post by C. Blue »

Unfortunately, the number of predefined towns (loaded from templates) is hardcoded to 5.
To hack this, I think you'd need to check out..

town_gen() in generate.c
town_profile[] in tables.c
wild_spawn_towns(), wild_add_new_dungeons(), deltown() in wild.c

If you happen to find any other code location besides these, please let me know. I might use the opportunity to actually un-hardcode the town number.
fingers
Posts: 3
Joined: Mon Jan 18, 2016 9:03 pm

Re: Private server admin questions.

Post by fingers »

Would the same be for items and classes?
C. Blue
Developer
Posts: 388
Joined: Sun Dec 13, 2009 6:28 pm

Re: Private server admin questions.

Post by C. Blue »

You can just add items in k_info/a_info/e_info.txt.
About classes, you need to edit tables.c, optionally lib/scpt/classes.lua, and perhaps other places, I'm not sure which ones.
Post Reply