• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved War System - Shields disappear when logout

Way20

Well-Known Member
Joined
Sep 29, 2014
Messages
208
Solutions
3
Reaction score
82
Hi guys, well, I've searched for help in other thread but I don't find help, then I decided create this thread.

I have War System and it seems work perfect, I can invite and accept a war normally.

ydfcQ2c.png


And I can see statistics in Gesior.

HF9ydzn.png


The problems is, when I logout the shields just disappear.

AA7GPD3.png


I'm using TFS 0.4 - Rev 3777, I can't change my sources because I made many edits, so don't tell to do this.

Anyone can help me with that? Just lack this to put my server on!
 
I Think the problem will be at database Or sql not source
Just saying. Database and sql is the same thing.



Hi guys, well, I've searched for help in other thread but I don't find help, then I decided create this thread.

I have War System and it seems work perfect, I can invite and accept a war normally.

ydfcQ2c.png


And I can see statistics in Gesior.

HF9ydzn.png


The problems is, when I logout the shields just disappear.

AA7GPD3.png


I'm using TFS 0.4 - Rev 3777, I can't change my sources because I made many edits, so don't tell to do this.

Anyone can help me with that? Just lack this to put my server on!
You got the libs files?
 
Just saying. Database and sql is the same thing.

Not really, the database is where you store your SQL code, SQL is the code itself.
TFS is not C++ in a way xD

Either source or Lua based, simply said - it doesn't save the updates.
 
Not really, the database is where you store your SQL code, SQL is the code itself.
TFS is not C++ in a way xD

Either source or Lua based, simply said - it doesn't save the updates.
Jajajajaj. :c, Always you need to correct me. :c But this problem is from libs i think. :P I hope this guy answer.
 
Jajajajaj. :c, Always you need to correct me. :c But this problem is from libs i think. :p I hope this guy answer.

It's fun, but also will teach you some :p

I highly doubt that, if it was the libs (in Elf's system atleast, it only contains the constants for the shields? - long since I checked).
Since it works till the player logs my guess is the saving of the player, more or less due to wrong coded source code (ignores the war system) or something made wrong in Lua.
Same if you crash a server, the things done after the last save won't be saved, in this case he diden't write anything about save losses with other things so probbly the system was added wrong.
 
It's fun, but also will teach you some :p

I highly doubt that, if it was the libs (in Elf's system atleast, it only contains the constants for the shields? - long since I checked).
Since it works till the player logs my guess is the saving of the player, more or less due to wrong coded source code (ignores the war system) or something made wrong in Lua.
Same if you crash a server, the things done after the last save won't be saved, in this case he diden't write anything about save losses with other things so probbly the system was added wrong.
Nah i dont think so. If that the problem 90% most have added it wrong. Do you remeber the thread yesterday when i posted the sources? 2 other people had the same problem.
 
Nah i dont think so. If that the problem 90% most have added it wrong. Do you remeber the thread yesterday when i posted the sources? 2 other people had the same problem.

Sounds weird in that case, the only reason for it to go away when player exits is saving, can be source related, SQL related etc etc
And smaller bugs can always pass compilation, question is when they get found, in this case when you exit the game.
 
Sounds weird in that case, the only reason for it to go away when player exits is saving, can be source related, SQL related etc etc
And smaller bugs can always pass compilation, question is when they get found, in this case when you exit the game.
When i had 0.x and added the sources manually it didn't work for me to compile. So i just downloaded a precompiled with War system and it worked. So maybe it sources as you say.
 
The problem is in the sources man, when I change Distro works perfect, but I dont know where is the problem in sources files.
 
way20 listen to mee don't waste ur time in nothing because no one will help you in this problem.
{*} to fix this problem must see all parts about Guild war in source.
{*} see what you edited in ur source and do it in source i sent to you .
{*} trust me bro don't waste your time in nothing
about me no have time to work in source now only person can help you here abut source is Ninja but he don't work in 0.4 anymore Limos best helper here but i feel he don't active like be4 again don't waste ur time in nothing

Sorry for my english :S
 
way20 listen to mee don't waste ur time in nothing because no one will help you in this problem.
{*} to fix this problem must see all parts about Guild war in source.
{*} see what you edited in ur source and do it in source i sent to you .
{*} trust me bro don't waste your time in nothing
about me no have time to work in source now only person can help you here abut source is Ninja but he don't work in 0.4 anymore Limos best helper here but i feel he don't active like be4 again don't waste ur time in nothing

Sorry for my english :S
You could help him. You know the issue. If you help this guy. This question maybe will never be asked again.
 
way20 listen to mee don't waste ur time in nothing because no one will help you in this problem.
{*} to fix this problem must see all parts about Guild war in source.
{*} see what you edited in ur source and do it in source i sent to you .
{*} trust me bro don't waste your time in nothing
about me no have time to work in source now only person can help you here abut source is Ninja but he don't work in 0.4 anymore Limos best helper here but i feel he don't active like be4 again don't waste ur time in nothing

Sorry for my english :S

Thanks for Reply man, don't worry, I'm not good at English too. Like I say I can't change my source, I think is easier fix War System than made all edits in other sources.

I've tested it with other Distro and It works perfect, now I got the sources of this Distro. All I need to do now is check the difference of War System codes, but I don't know in which files is the codes necessary to run War System, anyone can tell me? I know that ioguild.cpp and luascript.cpp have War System codes, but which are other files that have War System codes?
 
Thanks for Reply man, don't worry, I'm not good at English too. Like I say I can't change my source, I think is easier fix War System than made all edits in other sources.

I've tested it with other Distro and It works perfect, now I got the sources of this Distro. All I need to do now is check the difference of War System codes, but I don't know in which files is the codes necessary to run War System, anyone can tell me? I know that ioguild.cpp and luascript.cpp have War System codes, but which are other files that have War System codes?
I wish you goodluck looking trough 300 lines of code. :p
 
Haha, I didn't expect it would be easy, but it's necessary if I want to see my server on, can you tell in which files I need search?
Don't remember so good in which files they are in. ioguild.cpp and another files too. Don't remember.
 
Solved!!! Thanks a lot for all people who tried help me!!!


My Solution:
In my sources War System codes don't had "#ifdef __WAR_SYSTEM__" before of codes and "#endif" after codes, then I added it in files chat.cpp, combat.cpp, ioguild.cpp, luascript.cpp and player.cpp and then the System Worked Perfect!
 
Back
Top