EOSERV Forum > Lounge > PubExplore
Topic is locked.
Page: << 1 2 >>
PubExplore
Author Message
Post #89902 Re: PubExplore

Why are you checking if "len" is below len?

FOR i=0 TO len
   IF i < len? <-- You don't need this as it will never come back false.

---
I am an alien and not crazy!
13 years, 41 weeks ago
Post #89906 Re: PubExplore

It errors without it because of the retarded visual basic indexing. Ok i got 2 problems now.

Video : Here (Video failed processing -.-)

1. It wont load any items passed 315

2. Theres obviously something wrong with the numbers function because i always get this huge number for it, Whenever i have this for the data:

OData.Number(Asc(FileData.Substring(FI, 1)), Asc(FileData.Substring(FI + 1, 1)))

---
Andrewbob - I would be on the fucking copter of rofls

Programmer, Web Developer, and Graphics Designer
13 years, 41 weeks ago
Post #89907 Re: PubExplore

If you download my VB Map Editor there should be a Number() function that was written by Addison in there.

---
I am an alien and not crazy!
13 years, 41 weeks ago
Post #89909 Re: PubExplore

Where is it at in there? I dont see it in anything.

---
Andrewbob - I would be on the fucking copter of rofls

Programmer, Web Developer, and Graphics Designer
13 years, 41 weeks ago
Post #89910 Re: PubExplore

never mind. I just downloaded the source I have for it and the Load() procedure isn't done :/

Someone might have a copy but they might have forgotten about it. Just ignore getting it from there XD. Addison might be the best person to ask about it.

---
I am an alien and not crazy!
13 years, 41 weeks ago
Post #89911 Re: PubExplore

Lol, ima take another look at Packet.cpp. 

Edit: Took a look, it looks exact. Yeah well it should be working, its something wrong with MAX2 or it might not be the function it might just be because its not loading the full pub. Only 315 -.-

---
Andrewbob - I would be on the fucking copter of rofls

Programmer, Web Developer, and Graphics Designer
13 years, 41 weeks ago
Post #90032 Re: PubExplore

Have you tried debugging? If you're using VB I can safely assume you're using visual studio. Use the debugger. It's the best one out there. I can't stress enough how important debugging is to solve an "unsolvable" problem. 

---
class EOSERV {
Programmer | Oldbie
Open source EO Client: https://github.com/ethanmoffat/EndlessClient
};
13 years, 41 weeks ago
Post #90038 Re: PubExplore

I always use the debugger. No errors or anything.

Im guessing its the Number Function thats making the values huge. Notice anything with the Len of why its only allowing 315 items? 

---
Andrewbob - I would be on the fucking copter of rofls

Programmer, Web Developer, and Graphics Designer
13 years, 41 weeks ago
Post #90175 Re: PubExplore

I mean do you step through your program? Adding breakpoints, watching the variables, stepping through line by line, etc.

---
class EOSERV {
Programmer | Oldbie
Open source EO Client: https://github.com/ethanmoffat/EndlessClient
};
13 years, 41 weeks ago
Post #90188 Re: PubExplore
ethanmoffat posted: (25th Jul 2011 05:59 pm)

I mean do you step through your program? Adding breakpoints, watching the variables, stepping through line by line, etc.

Yeah. I think its just my number function, because it works perfectly with the first parameter, but if i have more it doesnt work.. 

---
Andrewbob - I would be on the fucking copter of rofls

Programmer, Web Developer, and Graphics Designer
13 years, 41 weeks ago
Post #90194 Re: PubExplore

I'm not sure if I understand you, but I think I do. If you're reading a number longer than 1 byte you must make sure that you are reading it as an unsigned int or unsigned short. I'm not sure why, but that's what I had to do when I was writing my C++ lib.

13 years, 41 weeks ago
Post #90220 Re: PubExplore
kenobi13 posted: (25th Jul 2011 08:35 pm)

I'm not sure if I understand you, but I think I do. If you're reading a number longer than 1 byte you must make sure that you are reading it as an unsigned int or unsigned short. I'm not sure why, but that's what I had to do when I was writing my C++ lib.

Its an unsigned int and its still not working. Ima try short.

I get errors when i use unsigned int. When i try short i still get big numbers but they are different.

Ok well if the value is 0 it is 15686 and if i subtracted this from the value it equals the real value. For some reason. But when it does it for graphics half of it is the real value and half its the value plus 15686. Wtf? anyone think they know the problem?

---
Andrewbob - I would be on the fucking copter of rofls

Programmer, Web Developer, and Graphics Designer
13 years, 41 weeks ago
Page: << 1 2 >>
Topic is locked.
EOSERV Forum > Lounge > PubExplore