ddnet-insta / ddnet-insta

A teeworlds instagib (grenade/laser capture the flag/death match/catch) mod based on DDRaceNetwork (gctf/ictf/idm/gdm/zcatch)
https://ddnet.org
Other
7 stars 3 forks source link

Draft map pools to pick random maps #182

Open ChillerDragon opened 3 weeks ago

ChillerDragon commented 3 weeks ago

The map pool can be defined in the config and manually changed by the admin in game

It is not synced to any other list of maps. This gives full control.

ChillerDragon commented 3 weeks ago

I tested it 5 seconds and it kinda worked. But not sure if that is the right approach anyways. There are so many map pools already. There is maps registered in the db used by ddnets random map. There is maps in the maps/ folder. There is maps in the vote list. Adding yet another pool seems bloat.

Also the code is a mess and quickly hacked down. Ideally there should not be any std::string and not even any std::vector.

ChillerDragon commented 4 hours ago

ddnet also uses std::vector of std::string for the censorlist.txt so it should be fine

14 year old teeworlds style would be to use a linked list and some self rolled allocator code that seems worse.