1

Topic: [HELP] Problem with own mod

Hey guys,

i tried to write my own mod, it compiles properly and seems to work. But if i enter the name of my mod in my server config the server always starts with DM mod. I've checked all things several times, I can't see any problem.

This is a line of the constructor of my class:
m_pGameType = "ABC";

Actually the server has to accept the mod "ABC" if i entered it in configs, but it does'nt accept it. The server always starts with DM mod.

Would be very happy if someone could help me!

Best regards,
Apson

2

Re: [HELP] Problem with own mod

Take a look into: "src/game/server/gamecontext.cpp"
Search for line that starts with "// select gametype" followed by "if(str_comp(g_Config.m_SvGametype"
Make sure your modname is there and fit to some condition (replace the mod string with your modname or add a new else if) because otherwise it's automatically "else m_pController = new CGameControllerDM(this);".

Greetings,
Mo(2)

3

Re: [HELP] Problem with own mod

You rock, man!

Thanks, very much!