Mirage Engine
Problems with the source - Printable Version

+- Mirage Engine (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: Problems with the source (/showthread.php?tid=2424)



Problems with the source - dioxsirramza - 07-12-2008

Hello, start the client and the server of my game, i login, choose the charater, but when i am going to enter in the game this happend:

[Image: error11wm70kg.png]

[Image: error21fl72uq.png]

Someone can help me?


Re: Problems with the source - Matt - 07-12-2008

Try deleting your items and see if you still get it. If you can get in, create an item, save it, logout and log back in. See if this happens again.


Re: Problems with the source - dioxsirramza - 07-12-2008

i delete all the items but the error is still in here T_T


Re: Problems with the source - Matt - 07-12-2008

Have you changed any code? What version of MS are you using?


Re: Problems with the source - dioxsirramza - 07-12-2008

i am using an old version of legends of kronia, like playerworlds, i dont change any code, I only translate some text messages


Re: Problems with the source - Matt - 07-12-2008

Ah. I've never looked at LoK's source. Something is being sent in the packet, that's too big for that variable to hold. I'd start with following the packets.


Re: Problems with the source - GIAKEN - 07-12-2008

After n = Val(Parse(1)) add:

Code:
If n < 1 Or n > MAX_ITEMS Then Exit Sub



Re: Problems with the source - Matt - 07-12-2008

It would be better if he figured out the issue, instead of going around it though.


Re: Problems with the source - GIAKEN - 07-12-2008

This isn't going around it...the problem is because he's probably got the max_items different values or something from server to client and to safeguard from that you add a simple check. It's just like doing If Index < 1 Or Index > MAX_PLAYERS checks.


Re: Problems with the source - dioxsirramza - 08-12-2008

i fix the bug, thanks


Re: Problems with the source - Matt - 08-12-2008

But if it's a problem like that, don't you think he should fix the problem instead of adding a check like this?


Re: Problems with the source - Kraft - 08-12-2008

Perfekt Wrote:But if it's a problem like that, don't you think he should fix the problem instead of adding a check like this?
Yeah! No offense, but that's the Elysium/Eclipse/Chaos way of "fixing" stuff. Sad


Re: Problems with the source - GIAKEN - 08-12-2008

How did you fix the problem diox?


Re: Problems with the source - dioxsirramza - 08-12-2008

in the client some of the values like max players, max items, etc, was diferent from the server

sorry for my horrible english :mrgreen:


Re: Problems with the source - GIAKEN - 08-12-2008

Cool.