trying to make an update to my server

Post Reply
User avatar
CharlieFrost
Posts: 33
Joined: Sat Nov 08, 2014 11:13 pm

trying to make an update to my server

Post by CharlieFrost » Sat Jan 10, 2015 10:35 am

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.
MCP, A+, Net+
Microsoft- Server/OS/Security Fundamentals

User avatar
TeoTwawki
Developer
Posts: 527
Joined: Mon Jul 15, 2013 9:50 pm

Re: trying to make an update to my server

Post by TeoTwawki » Sat Jan 10, 2015 12:29 pm

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.


Image
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
PLS USE [ code ] CODE TAGS [ /code ] WHEN POSTING CODE
DO NOT PRIVATE MESSAGE ME ABOUT BUGS

User avatar
CharlieFrost
Posts: 33
Joined: Sat Nov 08, 2014 11:13 pm

Re: trying to make an update to my server

Post by CharlieFrost » Sat Jan 10, 2015 12:53 pm

are these the only three files I need to delete before recompile?
2015-01-10 12_54_16-D__FFXI Source_darkstar.png
The three files I deleted
2015-01-10 12_54_16-D__FFXI Source_darkstar.png (3.85 KiB) Viewed 5820 times
MCP, A+, Net+
Microsoft- Server/OS/Security Fundamentals

User avatar
atom0s
Developer
Posts: 537
Joined: Thu Oct 25, 2012 9:52 am

Re: trying to make an update to my server

Post by atom0s » Sat Jan 10, 2015 2:16 pm

They should automatically be deleted when you recompile as long as they are not in use.

aventinus
Posts: 13
Joined: Sat Sep 08, 2012 8:48 pm

Re: trying to make an update to my server

Post by aventinus » Sat Jun 06, 2015 12:25 am

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?

Post Reply