Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (vicknick, 7th_zorro, 1 invisible), 887 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
[ANet] Disconnect message #342830
10/01/10 13:43
10/01/10 13:43
Joined: May 2009
Posts: 445
Peine, Germany
Razoron Offline OP
Senior Member
Razoron  Offline OP
Senior Member

Joined: May 2009
Posts: 445
Peine, Germany
Hi,
the message recieved by the disconnect event is always wrong.
I disoconnect with:
Code:
enet_disconnect_client(i, "restart");


and recieve with
Code:
STRING* savemsg = str_create(msg); // Save the message



But I always get something like this:
Originally Posted By: Log

restartcr<j

The right string and some random charachters depending on the string length.

Any suggestions?


Last edited by Razoron; 10/01/10 13:43.
Re: [ANet] Disconnect message [Re: Razoron] #342834
10/01/10 14:04
10/01/10 14:04
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline
Expert
Germanunkol  Offline
Expert

Joined: Jun 2006
Posts: 2,640
Earth
try:
STRING* savemsg = str_create("");
str_cpy(savemsg, msg);

it works for me.


~"I never let school interfere with my education"~
-Mark Twain
Re: [ANet] Disconnect message [Re: Germanunkol] #342835
10/01/10 14:06
10/01/10 14:06
Joined: Jun 2008
Posts: 428
Rasch Offline
Senior Member
Rasch  Offline
Senior Member

Joined: Jun 2008
Posts: 428
str_create isnt really necessary i think.

STRING* savemsg = "";
str_cpy(savemsg, msg);

that should do it laugh

Re: [ANet] Disconnect message [Re: Rasch] #342839
10/01/10 14:28
10/01/10 14:28
Joined: May 2009
Posts: 445
Peine, Germany
Razoron Offline OP
Senior Member
Razoron  Offline OP
Senior Member

Joined: May 2009
Posts: 445
Peine, Germany
Tried both, nothing worked, still some mysterious charachters.
Thanks anyway.

Re: [ANet] Disconnect message [Re: Razoron] #342847
10/01/10 15:29
10/01/10 15:29
Joined: Jun 2008
Posts: 428
Rasch Offline
Senior Member
Rasch  Offline
Senior Member

Joined: Jun 2008
Posts: 428
Maybe show your functions.

Otherwise check Gamestudio and ANet Version. There were some problems when unicode was implented. Update to the newest one.

Re: [ANet] Disconnect message [Re: Rasch] #342942
10/02/10 11:21
10/02/10 11:21
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
Update to the latest ANet version 1.3.2.0. This was a Bug that occured with the old ANet version(s) if you used Gamestudio A7.84 or higher.


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: [ANet] Disconnect message [Re: Dark_samurai] #342944
10/02/10 11:40
10/02/10 11:40
Joined: May 2009
Posts: 445
Peine, Germany
Razoron Offline OP
Senior Member
Razoron  Offline OP
Senior Member

Joined: May 2009
Posts: 445
Peine, Germany
Updated, it still doesn't work.
I have A 7.85.4. Maybe I should update to 7.86.

Re: [ANet] Disconnect message [Re: Razoron] #343105
10/03/10 17:29
10/03/10 17:29
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
Make sure you also updated the anet.h. Otherwise, the bug will still occure.


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: [ANet] Disconnect message [Re: Dark_samurai] #343107
10/03/10 18:24
10/03/10 18:24
Joined: May 2009
Posts: 445
Peine, Germany
Razoron Offline OP
Senior Member
Razoron  Offline OP
Senior Member

Joined: May 2009
Posts: 445
Peine, Germany
Latest A7 Engine.
Latest ANet.

You have forgotten to update the ANet in the current ANet version you can download.

The header says:
Originally Posted By: anet.h

////////////////////////////////////////////////////////////////////////////////
//filename: anet.h
//copyright: Peter Soxberger
//autor: Peter Soxberger
//last change: 18.09.2010
//version: 1.3.0.3
//Describtion: lite-c header for ANet.dll (by Peter Soxberger)
//Notes: For a detailed describtion of each function look into the
// manual, please!
// Visit: www.anet-plugin.com
////////////////////////////////////////////////////////////////////////////////


The date seems valid, but the version is still old.


Last edited by Razoron; 10/03/10 20:00.
Re: [ANet] Disconnect message [Re: Razoron] #343218
10/04/10 15:02
10/04/10 15:02
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
No, I only forgot to update the version field.

I will do some tests, sounds like a bug to me.


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Page 1 of 2 1 2

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1