Author |
Message |
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Fri May 18, 2007 12:46 am Post subject: |
|
|
|
|
Add util.c to the project, and add the mysql library to the linker settings. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
|
Aquarius Guest
Offline
|
Posted: Fri May 18, 2007 1:56 am Post subject: |
|
|
|
|
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Makefile.win" all
dllwrap.exe --output-def ../ssdev/libhscore.def --implib ../ssdev/libhscore.a ../ssdev/hscore/hscore_teamnames.o ../ssdev/hscore/hscore_commands.o ../ssdev/hscore/hscore_database.o ../ssdev/hscore/hscore_freqman.o ../ssdev/hscore/hscore_items.o ../ssdev/hscore/hscore_itemsstub.o ../ssdev/hscore/hscore_money.o ../ssdev/hscore/hscore_moneystub.o ../ssdev/hscore/hscore_mysql.o ../ssdev/hscore/hscore_prizer.o ../ssdev/hscore/hscore_rewards.o ../ssdev/hscore/hscore_storeman.o ../ssdev/hscore/hscore_buysell.o ../ssdev/hscore/hscore_spawner.o ../ssdev/asss-1.4.3/src/main/util.o -L"C:/Dev-Cpp/lib" -L"C:/ssdev/asss-1.4.3/windeps/mysqlinc" --no-export-all-symbols --add-stdcall-alias ../ssdev/asss-1.4.3/windeps/pthreadGC2.dll -o ../ssdev/hscore.dll
../ssdev/hscore/hscore_mysql.o(.text+0x4f):hscore_mysql.c: undefined reference to `mysql_real_query@12'
../ssdev/hscore/hscore_mysql.o(.text+0x75):hscore_mysql.c: undefined reference to `mysql_error@4'
../ssdev/hscore/hscore_mysql.o(.text+0xc1):hscore_mysql.c: undefined reference to `mysql_errno@4'
../ssdev/hscore/hscore_mysql.o(.text+0xf5):hscore_mysql.c: undefined reference to `mysql_field_count@4'
../ssdev/hscore/hscore_mysql.o(.text+0x13c):hscore_mysql.c: undefined reference to `mysql_store_result@4'
../ssdev/hscore/hscore_mysql.o(.text+0x15e):hscore_mysql.c: undefined reference to `mysql_error@4'
../ssdev/hscore/hscore_mysql.o(.text+0x1a2):hscore_mysql.c: undefined reference to `mysql_errno@4'
../ssdev/hscore/hscore_mysql.o(.text+0x200):hscore_mysql.c: undefined reference to `mysql_free_result@4'
../ssdev/hscore/hscore_mysql.o(.text+0x220):hscore_mysql.c: undefined reference to `mysql_close@4'
../ssdev/hscore/hscore_mysql.o(.text+0x237):hscore_mysql.c: undefined reference to `mysql_init@4'
../ssdev/hscore/hscore_mysql.o(.text+0x25e):hscore_mysql.c: undefined reference to `mysql_error@4'
../ssdev/hscore/hscore_mysql.o(.text+0x33a):hscore_mysql.c: undefined reference to `mysql_real_connect@32'
../ssdev/hscore/hscore_mysql.o(.text+0x357):hscore_mysql.c: undefined reference to `mysql_error@4'
../ssdev/hscore/hscore_mysql.o(.text+0x55b):hscore_mysql.c: undefined reference to `mysql_escape_string@12'
../ssdev/hscore/hscore_mysql.o(.text+0x609):hscore_mysql.c: undefined reference to `mysql_num_rows@4'
../ssdev/hscore/hscore_mysql.o(.text+0x61f):hscore_mysql.c: undefined reference to `mysql_fetch_row@4'
collect2: ld returned 1 exit status
dllwrap.exe: no export definition file provided.
Creating one, but that may not be what you want
dllwrap.exe: gcc exited with status 1
make.exe: *** [../ssdev/hscore.dll] Error 1
Execution terminated |
|
Back to top |
|
|
Smong Server Help Squatter
Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Fri May 18, 2007 5:02 am Post subject: |
|
|
|
|
You still have to link to mysqldll.a in the windeps directory. _________________ ss news |
|
Back to top |
|
|
Aquarius Guest
Offline
|
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Fri May 18, 2007 8:40 am Post subject: |
|
|
|
|
The problems are related, since hscore:mysql is a copy of database:mysql. I don't know why it's doing that though. |
|
Back to top |
|
|
aquarius Guest
Offline
|
Posted: Sat May 19, 2007 4:00 am Post subject: |
|
|
|
|
yea i don't know what the problem is, do you know of anything that would prevent the mysql module to boot? |
|
Back to top |
|
|
Aquarius Guest
Offline
|
Posted: Sat May 19, 2007 4:01 am Post subject: |
|
|
|
|
Maybe, if it can't connect to the database? Or would that just give you an error in-game. |
|
Back to top |
|
|
Animate Dreams Gotta buy them all! (Consumer whore)
Age:36 Gender: Joined: May 01 2004 Posts: 821 Location: Middle Tennessee Offline
|
Posted: Sat May 19, 2007 2:35 pm Post subject: |
|
|
|
|
It gives you an error on the console, but not in game, I don't believe. |
|
Back to top |
|
|
Aquarius Guest
Offline
|
Posted: Sun May 20, 2007 8:18 am Post subject: |
|
|
|
|
I have not resolved this yet |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Sun May 20, 2007 9:33 am Post subject: |
|
|
|
|
Have your programmer friend help you run it in a debugger. |
|
Back to top |
|
|
Bak ?ls -s 0 in
Age:25 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
|
Back to top |
|
|
Aquarius Guest
Offline
|
Posted: Fri May 25, 2007 6:31 am Post subject: |
|
|
|
|
Ok I had upgraded from 2000 to a more stable version of XP. Database modules load fine now, but the hyperspace modules do not load. Crashes at startup. |
|
Back to top |
|
|
tcsoccerman Server Help Squatter
Age:31 Gender: Joined: Jan 15 2007 Posts: 694 Location: Atlantis Offline
|
Posted: Sun Jun 24, 2007 8:44 pm Post subject: My errors |
|
|
|
|
Here are even newer debugging results. I've added all the packet\<item>.h files that it says are missing, so i don't know how to fix that.
Errors(82 in C, 76 in C++)
Errors(in c): Compiler: Default compiler
Building Makefile: "C:\DOCUME~1\Scott\MYDOCU~1\ATHEMA~2\src\hscore\Makefile.win"
Executing make...
make.exe -f "C:\DOCUME~1\Scott\MYDOCU~1\ATHEMA~2\src\hscore\Makefile.win" all
gcc.exe -c hscore_teamnames.c -o hscore_teamnames.o -I"C:/Documents and Settings/Scott/My Documents/zone file/asss-1.4.2/Dev-Cpp/include" -I"C:/Documents and Settings/Scott/My Documents/aThe matrix/src/include" -I"C:/Documents and Settings/Scott/My Documents/aThe matrix/windeps" -I"C:/Documents and Settings/Scott/My Documents/aThe matrix/src/packets" -DBUILDING_DLL=1
In file included from C:/Documents and Settings/Scott/My Documents/aThe matrix/src/include/asss.h:15,
from hscore_teamnames.c:7:
C:/Documents and Settings/Scott/My Documents/aThe matrix/src/include/defs.h:206:27: packets/types.h: No such file or directory
C:/Documents and Settings/Scott/My Documents/aThe matrix/src/include/defs.h:208:28: packets/simple.h: No such file or directory
In file included from C:/Documents and Settings/Scott/My Documents/aThe matrix/src/include/asss.h:22,
from hscore_teamnames.c:7:
C:/Documents and Settings/Scott/My Documents/aThe matrix/src/include/player.h:140:27: packets/pdata.h: No such file or directory
C:/Documents and Settings/Scott/My Documents/aThe matrix/src/include/player.h:141:25: packets/ppk.h: No such file or directory
C:/Documents and Settings/Scott/My Documents/aThe matrix/src/include/player.h:142:27: packets/login.h: No such file or directory
In file included from C:/Documents and Settings/Scott/My Documents/aThe matrix/src/include/asss.h:22,
from hscore_teamnames.c:7:
C:/Documents and Settings/Scott/My Documents/aThe matrix/src/include/player.h:182: error: parse error before "PlayerData"
C:/Documents and Settings/Scott/My Documents/aThe matrix/src/include/player.h:182: warning: no semicolon at end of struct or union
C:/Documents and Settings/Scott/My Documents/aThe matrix/src/include/player.h:261: error: parse error before '}' token
In file included from C:/Documents and Settings/Scott/My Documents/aThe matrix/src/include/asss.h:29,
from hscore_teamnames.c:7:
C:/Documents and Settings/Scott/My Documents/aThe matrix/src/include/core.h:12:27: packets/login.h: No such file or directory
In file included from C:/Documents and Settings/Scott/My Documents/aThe matrix/src/include/asss.h:29,
from hscore_teamnames.c:7:
C:/Documents and Settings/Scott/My Documents/aThe matrix/src/include/core.h:174: warning: `struct LoginPacket' declared inside parameter list
C:/Documents and Settings/Scott/My Documents/aThe matrix/src/include/core.h:174: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from C:/Documents and Settings/Scott/My Documents/aThe matrix/src/include/asss.h:33,
from hscore_teamnames.c:7:
C:/Documents and Settings/Scott/My Documents/aThe matrix/src/include/game.h:229: warning: `struct C2SPosition' declared inside parameter list
hscore_teamnames.c: In function `freqHasPlayers':
hscore_teamnames.c:109: error: dereferencing pointer to incomplete type
hscore_teamnames.c:109: error: dereferencing pointer to incomplete type
hscore_teamnames.c: In function `count_freq':
hscore_teamnames.c:194: error: dereferencing pointer to incomplete type
hscore_teamnames.c:195: error: dereferencing pointer to incomplete type
hscore_teamnames.c:197: error: dereferencing pointer to incomplete type
hscore_teamnames.c: In function `changeTeamCommand':
hscore_teamnames.c:231: error: dereferencing pointer to incomplete type
hscore_teamnames.c:246: error: dereferencing pointer to incomplete type
hscore_teamnames.c:246: error: dereferencing pointer to incomplete type
hscore_teamnames.c:264: error: dereferencing pointer to incomplete type
hscore_teamnames.c:264: error: dereferencing pointer to incomplete type
hscore_teamnames.c:265: error: dereferencing pointer to incomplete type
hscore_teamnames.c:268: error: dereferencing pointer to incomplete type
hscore_teamnames.c:272: error: dereferencing pointer to incomplete type
hscore_teamnames.c:273: error: dereferencing pointer to incomplete type
hscore_teamnames.c:299: error: dereferencing pointer to incomplete type
hscore_teamnames.c:306: error: dereferencing pointer to incomplete type
hscore_teamnames.c:315: error: dereferencing pointer to incomplete type
hscore_teamnames.c: In function `teamsCommand':
hscore_teamnames.c:325: error: dereferencing pointer to incomplete type
hscore_teamnames.c: In function `getTeamCommand':
hscore_teamnames.c:347: error: dereferencing pointer to incomplete type
hscore_teamnames.c:347: error: dereferencing pointer to incomplete type
hscore_teamnames.c:349: error: dereferencing pointer to incomplete type
hscore_teamnames.c: In function `getOwnerCommand':
hscore_teamnames.c:364: error: dereferencing pointer to incomplete type
hscore_teamnames.c:364: error: dereferencing pointer to incomplete type
hscore_teamnames.c:375: error: dereferencing pointer to incomplete type
hscore_teamnames.c: In function `giveOwnerCommand':
hscore_teamnames.c:391: error: dereferencing pointer to incomplete type
hscore_teamnames.c:391: error: dereferencing pointer to incomplete type
hscore_teamnames.c:399: error: dereferencing pointer to incomplete type
hscore_teamnames.c:399: error: dereferencing pointer to incomplete type
hscore_teamnames.c:402: error: dereferencing pointer to incomplete type
hscore_teamnames.c: In function `teamKickCommand':
hscore_teamnames.c:433: error: dereferencing pointer to incomplete type
hscore_teamnames.c:433: error: dereferencing pointer to incomplete type
hscore_teamnames.c:444: error: dereferencing pointer to incomplete type
hscore_teamnames.c:444: error: dereferencing pointer to incomplete type
hscore_teamnames.c:448: error: dereferencing pointer to incomplete type
hscore_teamnames.c: In function `setTeamPasswordCommand':
hscore_teamnames.c:491: error: dereferencing pointer to incomplete type
hscore_teamnames.c:491: error: dereferencing pointer to incomplete type
hscore_teamnames.c: In function `getPlayerTeamName':
hscore_teamnames.c:539: error: dereferencing pointer to incomplete type
hscore_teamnames.c:539: error: dereferencing pointer to incomplete type
hscore_teamnames.c: In function `count_current_playing':
hscore_teamnames.c:549: error: dereferencing pointer to incomplete type
hscore_teamnames.c:550: error: dereferencing pointer to incomplete type
hscore_teamnames.c:551: error: dereferencing pointer to incomplete type
hscore_teamnames.c: In function `FindLegalShip':
hscore_teamnames.c:562: error: dereferencing pointer to incomplete type
hscore_teamnames.c:581: error: dereferencing pointer to incomplete type
hscore_teamnames.c: In function `BalanceFreqs':
hscore_teamnames.c:625: error: dereferencing pointer to incomplete type
hscore_teamnames.c:626: error: dereferencing pointer to incomplete type
hscore_teamnames.c:628: error: dereferencing pointer to incomplete type
hscore_teamnames.c:629: error: dereferencing pointer to incomplete type
hscore_teamnames.c: In function `screen_res_allowed':
hscore_teamnames.c:657: error: dereferencing pointer to incomplete type
hscore_teamnames.c:657: error: dereferencing pointer to incomplete type
hscore_teamnames.c: In function `Initial':
hscore_teamnames.c:670: error: dereferencing pointer to incomplete type
hscore_teamnames.c:673: error: dereferencing pointer to incomplete type
hscore_teamnames.c:683: error: dereferencing pointer to incomplete type
hscore_teamnames.c: In function `Ship':
hscore_teamnames.c:712: error: dereferencing pointer to incomplete type
hscore_teamnames.c:715: error: dereferencing pointer to incomplete type
hscore_teamnames.c:728: error: dereferencing pointer to incomplete type
hscore_teamnames.c:741: error: dereferencing pointer to incomplete type
hscore_teamnames.c:751: error: dereferencing pointer to incomplete type
hscore_teamnames.c:751: error: dereferencing pointer to incomplete type
hscore_teamnames.c:777: error: dereferencing pointer to incomplete type
hscore_teamnames.c:787: error: dereferencing pointer to incomplete type
hscore_teamnames.c:807: error: dereferencing pointer to incomplete type
hscore_teamnames.c:808: error: dereferencing pointer to incomplete type
hscore_teamnames.c: In function `Freq':
hscore_teamnames.c:814: error: dereferencing pointer to incomplete type
hscore_teamnames.c:857: error: dereferencing pointer to incomplete type
hscore_teamnames.c:865: error: dereferencing pointer to incomplete type
hscore_teamnames.c:866: error: dereferencing pointer to incomplete type
hscore_teamnames.c:875: error: dereferencing pointer to incomplete type
hscore_teamnames.c:876: error: dereferencing pointer to incomplete type
hscore_teamnames.c:887: error: dereferencing pointer to incomplete type
hscore_teamnames.c:890: error: dereferencing pointer to incomplete type
hscore_teamnames.c:891: error: dereferencing pointer to incomplete type
hscore_teamnames.c: In function `shipChangeCallback':
hscore_teamnames.c:905: error: dereferencing pointer to incomplete type
hscore_teamnames.c:907: error: dereferencing pointer to incomplete type
hscore_teamnames.c:908: error: dereferencing pointer to incomplete type
make.exe: *** [hscore_teamnames.o] Error 1
Execution terminated |
Last edited by tcsoccerman on Mon Jun 25, 2007 10:06 am, edited 1 time in total |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
|
Back to top |
|
|
Smong Server Help Squatter
Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Tue Jun 26, 2007 10:20 am Post subject: |
|
|
|
|
Make sure you have setup the include directories:
That should fix all the packets/*.h errors and any pthread.h error. |
|
Back to top |
|
|
tcsoccerman Server Help Squatter
Age:31 Gender: Joined: Jan 15 2007 Posts: 694 Location: Atlantis Offline
|
|
Back to top |
|
|
tcsoccerman Server Help Squatter
Age:31 Gender: Joined: Jan 15 2007 Posts: 694 Location: Atlantis Offline
|
|
Back to top |
|
|
Doc Flabby Server Help Squatter
Joined: Feb 26 2006 Posts: 636 Offline
|
|
Back to top |
|
|
Smong Server Help Squatter
Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Tue Jun 26, 2007 12:33 pm Post subject: |
|
|
|
|
@tcsoccerman
Add windeps/mysqlinc to the include directories too. |
|
Back to top |
|
|
tcsoccerman Server Help Squatter
Age:31 Gender: Joined: Jan 15 2007 Posts: 694 Location: Atlantis Offline
|
Posted: Tue Jun 26, 2007 1:07 pm Post subject: |
|
|
|
|
i've already done that. |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Wed Jun 27, 2007 12:11 am Post subject: |
|
|
|
|
New version.
Lot and lots of bug fixes. Table layout is different, so if you have data you want to keep, you'll have to manually change them. Otherwise, drop them and let the database module take care of it.
Known issues:
There's still issues with prizing after buying&selling or losing ammo.
?grantitem has virtually no protection for invalid commands. It's been known to totally mess up settings packets for players. Use with caution.
Edit: removed old version
Last edited by Dr Brain on Mon Mar 03, 2008 8:48 pm, edited 1 time in total |
|
Back to top |
|
|
tcsoccerman Server Help Squatter
Age:31 Gender: Joined: Jan 15 2007 Posts: 694 Location: Atlantis Offline
|
Posted: Wed Jun 27, 2007 10:04 am Post subject: |
|
|
|
|
I got 212 errors labeled . i have included mysqlla.a in linker settings and that's it.
also, i've never used mysql before, so what are the basics to setting it up? what should i put for or ?
is the mysql file automatically made after you play continuum for the first time? i'll try dling that program you mentioned in post #1. |
|
Back to top |
|
|
KrynetiX Seasoned Helper
Gender: Joined: Jan 06 2003 Posts: 137 Location: Poconos Offline
|
Posted: Wed Jun 27, 2007 11:53 am Post subject: |
|
|
|
|
I've gotten hscore to compile on windows, but I don't recommend it, it probably won't work unless you compile asss on windows first (not a precompiled version)
I switched over to ubuntu, and i got asss and hscore to compile with little errors, and the errors were my own fault.
You need a mysql database, ask someone.
They will give you the input for [mysql] then you can connect to it via a GUI.
but i suggest ubuntu |
|
Back to top |
|
|
|