PDA

View Full Version : 01/03/2004 build, 0.5.3-DR2 Make fails (fix inside)


r2d2atemyhomework
01-03-2004, 02:03 PM
The latest version of 0.5.3-DR2 is failing to make on Linux.

The error received is:
client.cpp:3413: name lookup of `i' changed for new ISO `for' scoping
client.cpp:3401: using obsolete binding at `i'

Just need to give the second for loop in Client::Message_StringID it's own declared iterator rather than reusing 'i'. Diff of the fix is below:


3413,3416c3413,3416
< for(i=0;i<9;i++){
< if(messagearray[i]){
< strcpy((char*)bufptr,messagearray[i]);
< bufptr+=strlen(messagearray[i])+1;
---
> for(int j=0;j<9;j++){
> if(messagearray[j]){
> strcpy((char*)bufptr,messagearray[j]);
> bufptr+=strlen(messagearray[j])+1;

r2d2atemyhomework
01-03-2004, 02:06 PM
I should also mention I'm using gcc 3.2.2, in case this a compiler version issue.

Avsen
01-07-2004, 10:28 PM
Did you get the source from the 319Shawn.eqemulator.net/cvs? I looked at it, and it didn't seem to be compileable under linux.

I edited the makefiles to make them all point to the root directory when compiling (and made 3 makefiles for world, zone and the memory). However, I had the same problem you had with client.o. For me, however, the "variable i problem" you're describing is only a warning (not a error). I made the change and it still fails to compile. Instead, it seems that the error is that UpdateWindowTitle(char*) isn't getting the right arguments (in net.cpp/h).

I was wondering if you have gotten the source (the 1/3/2004 source) to compile and work completely yet.

Thanks
Lawrence

Avsen
01-07-2004, 10:45 PM
Also, out of curiosity, does the newest (1/4?) EQLive patch work with the original 5.3DR2 source? --- or does it *only* work with the new source offered by 319Shawn?

I'm asking this because I can't compile it, and though my friend doesn't have a problem logging onto brightblade, he has a problem logging onto my server (1017 error).

Just wondering if its a version issue, or another server issue that I didn't look into yet

Lawrence

kathgar
01-08-2004, 12:15 AM
Paste the output.. that diff isn't the best way to deal with it but it will work.. and UpdateWindowTitle doesn't do anything in linux.. you can just comment out the line but it should compile fine.. but I need to know where it is to check anyways.

Gangrif
01-08-2004, 08:57 AM
I made the change mentioned above.. and i get this when i try to compile:

client.cpp:3413: `j' undeclared (first use this function)
client.cpp:3413: (Each undeclared identifier is reported only once for each
function it appears in.)
client.cpp: In member function `bool Client::SwapItem(MoveItem_Struct*)':
client.cpp:3467: warning: comparison between signed and unsigned integer
expressions
client.cpp:3616: warning: comparison between signed and unsigned integer
expressions
client.cpp: In member function `uint16 Client::GetAA(unsigned char)':
client.cpp:3896: warning: comparison is always true due to limited range of
data type
client.cpp: In member function `int16 Client::FindItem(unsigned int)':
client.cpp:3904: warning: unused variable `int16 charges'
make: *** [client.o] Error 1

Gangrif
01-08-2004, 10:11 AM
i must have missed something the first time..
I did it again, and it works now..

:D

Avsen
01-08-2004, 11:17 AM
Gangrif, I'm assuming you're using the most recent code from 319Shawn?

Avsen
01-08-2004, 12:12 PM
hmm,

I'm just wondering, are you all referring to the code in the post by Shawn319:

?

Posted: 01-01-2004 12:05 AM Post subject:

--------------------------------------------------------------------------------

Latest Dr2 source -> http://Shawn319.eqemulator.net/cvs
No support for this.. report bugs directly to me.
_________________
Shawn319
EQEmu Lead Tester
Win32 Tech Support
World Builder - NPCMOVDB
Host/ServerOP - Shawn319's All-GM Dev Test Server
Host/ServerOP - EQEmu Release Canidate Server #1
ServerOP - EQEmu Beta Server
ServerOP - GuildWars Server
ServerOP - ForeverHacking Server
ServerOP - Krusher's Server
--------------------------
EQEmu Guides
EQEmu FAQ

Great tool for Database Editing -> mySQL-Front (download 2.5)

Last edited by Shawn319 on 01-05-2004 01:57 PM; edited 1 time in total


I have gotten the 5.3DR2 original code to compile. I have also gotten the code provided by Myra to compile (http://www.eqemulator.net/forums/viewtopic.php?t=12162). However, the code in Shawn's CVS does *not* compile for me at all. After fixing the problems in client.o, there are problems w/ zone.o. After whipping up a hackedup fix for it, there are still more errors in other files. I'm pretty sure that its something having to do with me rather than the code.

Has any of you linux people gotten the version I'm talking about to compile? If so, how did you go about doing it?

I'm using Debian and gcc 3.3.

Thanks
Lawrence

Gangrif
01-08-2004, 01:37 PM
Yes, tahts the package i dled. The one you quoted that is.

in a nutshell heres what i did.

dled that rar to a windows box, and extracted it (i dont have a unrar utility on my linux box)
re-compressed it as a zip.
sent it over to the linux box.
unzipped it to ~/eqemu/053dr2/
it created its own directories for zone, world, and the mem lib, along with a few other things.

for world, and the mem lib, i just entered the directory, and typed make.
they compiled with no errors.

for zone, i had a little trouble, eventually what did it was this:
# make clean
# vi client.cpp
ripped out the block that this thread says to replace, and pasted the code from this thread in its place.
edited out the spaces before each line, and replaced them with tabs to retain format.
then i had to edit the makefile.. the first 10 or so lines, i had to remove the 3 spaces before each line fo the makefile to not produce any errors.

then
# make

it compiled.

Avsen
01-08-2004, 05:44 PM
Ahh, something is probably wrong w/ my unraring program. Thanks for the help!

Avsen
01-08-2004, 05:56 PM
Sorry for bothering everyone w/ my stupidity. Thanks a lot Gangrif!

Gangrif
01-09-2004, 01:04 AM
dont thank me until it works! :)

It worked for me, that doesnt mean itll work for you. ;)

you're welcome anyway.

Avsen
01-09-2004, 07:53 AM
Well,

it compiles, it runs, people see my server-name. However, no one can log on, as it gives them a 1017 error. Still beyond me why that is.

Gangrif
01-09-2004, 09:29 AM
1017.... 1017...... lemme remember what that is.

Avsen
01-09-2004, 01:12 PM
Well... its the client cannot connect problem (bad settings in LoginServer.ini). Managed to fix that one (stupid mistakes!!!). However, there are other issues now. Zones don't load (ie. qcat). Also, visibility is low (cuz eqtime is missing I guess.. haha), and NPCs cast spells left and right. But hey, at least the game works now, so I have something to work with.

Thanks
Lawrence

Gangrif
01-09-2004, 03:43 PM
Also, visibility is low

Check your clip plane.. this hit me too once i tried to play... kicked myself when i figured it out.