[Release] World Conquer Source v2

03/02/2020 03:27 pintinho12#211
Quote:
Originally Posted by Gii0 View Post
I have another issue about items, every time i drop an item and relogin the item in my inventory is still there and also the item that i droped. if i pick the item the item is duplicated.. please i need help for this bug ...

BTW! thanks pintinho12 for the help.
already fix the last issues. this new problem is hard for me cause i dont know where to start I'm just a noob programmer. :handsdown:
Never had this issue even in a live server.
03/05/2020 19:40 pintinho12#212
Problems that may cause the server to freeze:
Delete characters is bugged :)
Disconnecting inside of the Training Ground

For those who didn't experience any issue or couldn't find out what could cause the freeze, there's it. How to fix? Debug
03/05/2020 20:18 Spirited#213
Quote:
Originally Posted by pintinho12 View Post
Problems that may cause the server to freeze:
Delete characters is bugged :)
Disconnecting inside of the Training Ground

For those who didn't experience any issue or couldn't find out what could cause the freeze, there's it. How to fix? Debug
Sorry for calling you out, but if you expect the community to help fix the source or fix it for themselves without maintaining the original source, then I recommend hosting this on GitLab or GitHub. That way, someone can make a pull request with a fix and less questions can be asked about this. The more we can promote contributions the better... And reduce the amount of unchecked / no feedback derivative works.
03/05/2020 21:13 pintinho12#214
Quote:
Originally Posted by Spirited View Post
Sorry for calling you out, but if you expect the community to help fix the source or fix it for themselves without maintaining the original source, then I recommend hosting this on GitLab or GitHub. That way, someone can make a pull request with a fix and less questions can be asked about this. The more we can promote contributions the better... And reduce the amount of unchecked / no feedback derivative works.
I wont fix it and I aint requesting for help to fix it. I'm just telling because I noticed that the download amount has increased on the last weeks and this may be dangerous if people starts to use this as a source in production.

Also, if they want to use this in production they need to know how to fix the issues that are not hard at all, otherwise they'll reach an amount of players and the server will auto destruct.

That source worked very well at that time, I did the work I had to do and now people just need to fix small issues. I have the v3 in a private Git environment and the v4 which I'm doing in C++ too.

That's all.
03/05/2020 22:07 Spirited#215
Quote:
Originally Posted by pintinho12 View Post
I wont fix it and I aint requesting for help to fix it. I'm just telling because I noticed that the download amount has increased on the last weeks and this may be dangerous if people starts to use this as a source in production.

Also, if they want to use this in production they need to know how to fix the issues that are not hard at all, otherwise they'll reach an amount of players and the server will auto destruct.

That source worked very well at that time, I did the work I had to do and now people just need to fix small issues. I have the v3 in a private Git environment and the v4 which I'm doing in C++ too.

That's all.
All I'm saying is I don't like how these sources get posted and go unsupported with no way for others to maintain it publicly. It'd be nice if this was posted to a git repo.
03/06/2020 00:11 pintinho12#216
Quote:
Originally Posted by Spirited View Post
All I'm saying is I don't like how these sources get posted and go unsupported with no way for others to maintain it publicly. It'd be nice if this was posted to a git repo.
Hummm, I'll update it when I have some time then. Anyway, when my C++ source starts to work I'll release the 5808 (C#) version anyway. I'll just stick with this post, but the 5808 will be on the gitlab repo.
03/20/2020 17:34 clock321#217
Guys, i keep getting this error.
i tried 4 different client versions, all gave me this error, so i tried to change loaders, tried the conquer loader v5.2, and the CID loader, both gave me the same error, anyone have any idea how to solve?
[Only registered and activated users can see links. Click Here To Register...][Only registered and activated users can see links. Click Here To Register...]

*EDIT
Holy sheet guys, im retarded, i was trying to login with older clients like 5065, so sorry.
will keep this reply, for the idiots like me.
03/20/2020 20:53 darkhc#218
Quote:
Originally Posted by Gii0 View Post
I have another issue about items, every time i drop an item and relogin the item in my inventory is still there and also the item that i droped. if i pick the item the item is duplicated.. please i need help for this bug ...

BTW! thanks pintinho12 for the help.
already fix the last issues. this new problem is hard for me cause i dont know where to start I'm just a noob programmer. :handsdown:
This problem with item drop is real. I have this same issue but not found the problem and not have time for repair this :(.
03/20/2020 23:43 pintinho12#219
Quote:
Originally Posted by darkhc View Post
This problem with item drop is real. I have this same issue but not found the problem and not have time for repair this :(.
The system does use a ORM which will not let you save twice the same ID if you're creating something (will throw you a BIG exception), if you delete something on the database and try to save it on the server, it will throw a BIG exception in the console and when you drop something it just changes the item position to 254, which means it's on the floor, so if you save it by any mean it will be recorded in the floor and wont come back to your inventory.
Tho, you might do a check when initializating items that if the item is in the floor, you delete it. But even if it's on the floor and you enter the game, it will save the item back in your inventory, but the DB object is still the same, so it won't be saved twice.
You can debug when you DROP the item and when you PICK UP the item, if you see something wrong it might not be hard to fix. But as I said, this server has gone live with over 150 players online and never gave me this item issue.
Thus, you SHOULD NOT change any server record while the server is live. Tables that are updated when the server is live MUST be EXCLUSIVELY updated by the server, or you'll have items not saving, characters not saving properly and etc.
If you need to do anything outside of the game world, make it communicate on the network and the server itself make the processing.
I will download the 5103 source and check the processing.
----------------------
[Only registered and activated users can see links. Click Here To Register...]
03/22/2020 01:51 darkhc#220
Quote:
Originally Posted by pintinho12 View Post
The system does use a ORM which will not let you save twice the same ID if you're creating something (will throw you a BIG exception), if you delete something on the database and try to save it on the server, it will throw a BIG exception in the console and when you drop something it just changes the item position to 254, which means it's on the floor, so if you save it by any mean it will be recorded in the floor and wont come back to your inventory.
Tho, you might do a check when initializating items that if the item is in the floor, you delete it. But even if it's on the floor and you enter the game, it will save the item back in your inventory, but the DB object is still the same, so it won't be saved twice.
You can debug when you DROP the item and when you PICK UP the item, if you see something wrong it might not be hard to fix. But as I said, this server has gone live with over 150 players online and never gave me this item issue.
Thus, you SHOULD NOT change any server record while the server is live. Tables that are updated when the server is live MUST be EXCLUSIVELY updated by the server, or you'll have items not saving, characters not saving properly and etc.
If you need to do anything outside of the game world, make it communicate on the network and the server itself make the processing.
I will download the 5103 source and check the processing.
----------------------
[Only registered and activated users can see links. Click Here To Register...]
Thanks, i appreciate your answer as soon as I have free time I will try it
03/22/2020 09:56 Latyos#221
Hello,

First of all, thanks for the release. I got it to work and I think I fixed the issue with generators. I just check size of the Generator dictionary and if it's going to be full, I reload them (similar to how reloadgen command works), not sure if it's the most elegant or efficient way though.

Although I still experience server freeze issue and have no idea what's causing it. It happens even in local server while I'm all alone. I tried some stuff with the tip you've given (amount of threads accessing players dictionary) but yeah couldn't really solve this problem. Been wondering if you could find the solution for this and if you did, can you give me some tips to fix it? Note that I know some c# but haven't touched anything CO related in like 10 years.
03/22/2020 16:25 pintinho12#222
Quote:
Originally Posted by Latyos View Post
Hello,

First of all, thanks for the release. I got it to work and I think I fixed the issue with generators. I just check size of the Generator dictionary and if it's going to be full, I reload them (similar to how reloadgen command works), not sure if it's the most elegant or efficient way though.
For this, I created this thing:
When destroying the object remember to give the ID back to the object.

Quote:
Although I still experience server freeze issue and have no idea what's causing it. It happens even in local server while I'm all alone. I tried some stuff with the tip you've given (amount of threads accessing players dictionary) but yeah couldn't really solve this problem. Been wondering if you could find the solution for this and if you did, can you give me some tips to fix it? Note that I know some c# but haven't touched anything CO related in like 10 years.
Hummm, you know, I have changed a few structures on my new source, which I doesn't think that it's good enough but at least I am not experiencing the freeze anymore, at least not with ~50 players.

The server was broking down when:
Issue 1: Someone was getting out of TG when using a skill or attacking the stake.
Solution 1: Cancel the skill before teleporting. (Server side)

Issue 2: When deleting a character.
Solution 2: The problem was in the deletion algorithm, I don't quite remember it, but it was throwing infinite exceptions everytime the thread tried to iterate through players and it wouldn't continue iterating.

There's a bug with dynamic NPCs, just fix the Name offset handler so it wont resize the packet until over 1024 size.
(Change the offsets to 5517, because they're 5808)
03/22/2020 17:18 Latyos#223
Quote:
Originally Posted by pintinho12 View Post
For this, I created this thing:
When destroying the object remember to give the ID back to the object.



Hummm, you know, I have changed a few structures on my new source, which I doesn't think that it's good enough but at least I am not experiencing the freeze anymore, at least not with ~50 players.

The server was broking down when:
Issue 1: Someone was getting out of TG when using a skill or attacking the stake.
Solution 1: Cancel the skill before teleporting. (Server side)

Issue 2: When deleting a character.
Solution 2: The problem was in the deletion algorithm, I don't quite remember it, but it was throwing infinite exceptions everytime the thread tried to iterate through players and it wouldn't continue iterating.

There's a bug with dynamic NPCs, just fix the Name offset handler so it wont resize the packet until over 1024 size.
(Change the offsets to 5517, because they're 5808)
Thanks for the answer. I will experiment more, definitely use your code as a reference point and get back to you if I manage fix it. I'm really having fun playing with it lol.
03/26/2020 19:29 darkhc#224
Quote:
Originally Posted by pintinho12 View Post
The system does use a ORM which will not let you save twice the same ID if you're creating something (will throw you a BIG exception), if you delete something on the database and try to save it on the server, it will throw a BIG exception in the console and when you drop something it just changes the item position to 254, which means it's on the floor, so if you save it by any mean it will be recorded in the floor and wont come back to your inventory.
Tho, you might do a check when initializating items that if the item is in the floor, you delete it. But even if it's on the floor and you enter the game, it will save the item back in your inventory, but the DB object is still the same, so it won't be saved twice.
You can debug when you DROP the item and when you PICK UP the item, if you see something wrong it might not be hard to fix. But as I said, this server has gone live with over 150 players online and never gave me this item issue.
Thus, you SHOULD NOT change any server record while the server is live. Tables that are updated when the server is live MUST be EXCLUSIVELY updated by the server, or you'll have items not saving, characters not saving properly and etc.
If you need to do anything outside of the game world, make it communicate on the network and the server itself make the processing.
I will download the 5103 source and check the processing.
----------------------
[Only registered and activated users can see links. Click Here To Register...]
I have been testing and when throwing the object and disconnecting and reconnecting it gives me the object again and the one I have thrown is still there
03/26/2020 23:02 pintinho12#225
Quote:
Originally Posted by darkhc View Post
I have been testing and when throwing the object and disconnecting and reconnecting it gives me the object again and the one I have thrown is still there
Then, just make sure the item is being save with the PlayerIdentity set to 0 after being thrown