Hello Team,
Last night I made a change in dsp/src/map/ai/ai_char_normal.cpp to lower the reengage delay. this is done mainly to help mnk not have to wait 30 seconds between battles. How am I supposed to get this change to take. I deleted the three game server files from dsp/ and recompiled. should I have just restarted the game server? I was afraid to do the latter as the last few times I have tried to make a change in c++ I always break the server somehow. Please advise.
trying to make an update to my server
- CharlieFrost
- Posts: 33
- Joined: Sat Nov 08, 2014 11:13 pm
trying to make an update to my server
MCP, A+, Net+
Microsoft- Server/OS/Security Fundamentals
Microsoft- Server/OS/Security Fundamentals
Re: trying to make an update to my server
Recompiling should have made your changes to that file (assuming the changed code is correct) have the effect in game. src changes always require a compile.
Hi, I run The Demiurge server.

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
DO NOT PRIVATE MESSAGE ME ABOUT BUGSPLS USE [ code ] CODE TAGS [ /code ] WHEN POSTING CODE
- CharlieFrost
- Posts: 33
- Joined: Sat Nov 08, 2014 11:13 pm
Re: trying to make an update to my server
are these the only three files I need to delete before recompile?
MCP, A+, Net+
Microsoft- Server/OS/Security Fundamentals
Microsoft- Server/OS/Security Fundamentals
Re: trying to make an update to my server
They should automatically be deleted when you recompile as long as they are not in use.
Re: trying to make an update to my server
I have tried the same thing and recompiled but still have the delay. Just cant figure this one out.
Line 316 in ai_char_normal.cpp
I changed this line: m_LastMeleeTime = m_Tick - m_PChar->m_Weapons[SLOT_MAIN]->getDelay() + 1500;
to this: m_LastMeleeTime = m_Tick - m_PChar->m_Weapons[SLOT_MAIN]->getDelay() + 0;
Is there something else that needs to be changed?
Line 316 in ai_char_normal.cpp
I changed this line: m_LastMeleeTime = m_Tick - m_PChar->m_Weapons[SLOT_MAIN]->getDelay() + 1500;
to this: m_LastMeleeTime = m_Tick - m_PChar->m_Weapons[SLOT_MAIN]->getDelay() + 0;
Is there something else that needs to be changed?