Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Hyperspace core modules
Goto page Previous  1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic Printable version
 View previous topic  <c> initial Post :: Post <c> Setting banners (example)  View next topic  
Author Message
Dr Brain
Flip-flopping like a wind surfer


Age:38
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Fri May 18, 2007 12:46 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Aquarius
Guest


Offline

PostPosted: Fri May 18, 2007 1:56 am    Post subject: Reply to topic Reply with quote

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

PostPosted: Fri May 18, 2007 5:02 am    Post subject: Reply to topic Reply with quote

You still have to link to mysqldll.a in the windeps directory.
_________________
ss news
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
Aquarius
Guest


Offline

PostPosted: Fri May 18, 2007 5:10 am    Post subject: Reply to topic Reply with quote

I actually got it compiled without removing anything.

Now the problem is that as3 crashes at startup with the modules listed.

Tell me if i'm wrong but, I put hscore.dll into /bin and added this to the very bottom of modules.conf

Code: Show/Hide
hscore:hscore_mysql
hscore:hscore_database
hscore:hscore_money
hscore:hscore_items
hscore:hscore_buysell
hscore:hscore_commands
hscore:hscore_storeman
hscore:hscore_teamnames
hscore:hscore_rewards
hscore:hscore_spawner


Also, when i add database:mysql it crashes on startup, but that's another topic, or does it need to work for hs to work? (i would assume it does)
Back to top
Dr Brain
Flip-flopping like a wind surfer


Age:38
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Fri May 18, 2007 8:40 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
aquarius
Guest


Offline

PostPosted: Sat May 19, 2007 4:00 am    Post subject: Reply to topic Reply with quote

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

PostPosted: Sat May 19, 2007 4:01 am    Post subject: Reply to topic Reply with quote

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:Gender:Male
Joined: May 01 2004
Posts: 821
Location: Middle Tennessee
Offline

PostPosted: Sat May 19, 2007 2:35 pm    Post subject: Reply to topic Reply with quote

It gives you an error on the console, but not in game, I don't believe.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address MSN Messenger
Aquarius
Guest


Offline

PostPosted: Sun May 20, 2007 8:18 am    Post subject: Reply to topic Reply with quote

I have not resolved this yet new_let_it_all_out.gif
Back to top
Dr Brain
Flip-flopping like a wind surfer


Age:38
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Sun May 20, 2007 9:33 am    Post subject: Reply to topic Reply with quote

Have your programmer friend help you run it in a debugger.
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Bak
?ls -s
0 in


Age:25
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Mon May 21, 2007 1:53 pm    Post subject: Reply to topic Reply with quote

does at crash at startup, or just close?
_________________
SubSpace Discretion: A Third Generation SubSpace Client
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Aquarius
Guest


Offline

PostPosted: Fri May 25, 2007 6:31 am    Post subject: Reply to topic Reply with quote

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:Gender:Male
Joined: Jan 15 2007
Posts: 694
Location: Atlantis
Offline

PostPosted: Sun Jun 24, 2007 8:44 pm    Post subject: My errors Reply to topic Reply with quote

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):
Code: Show/Hide
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
View users profile Send private message Add User to Ignore List Send email AIM Address
Dr Brain
Flip-flopping like a wind surfer


Age:38
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Sun Jun 24, 2007 11:38 pm    Post subject: Reply to topic Reply with quote

Code: Show/Hide
pthread.h: No such file or directory


Fix this first.
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Tue Jun 26, 2007 10:20 am    Post subject: Reply to topic Reply with quote

Make sure you have setup the include directories:





That should fix all the packets/*.h errors and any pthread.h error.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
tcsoccerman
Server Help Squatter


Age:31
Gender:Gender:Male
Joined: Jan 15 2007
Posts: 694
Location: Atlantis
Offline

PostPosted: Tue Jun 26, 2007 11:12 am    Post subject: Reply to topic Reply with quote

Very nice! how much?!

total errors:6

compile log:

Code: Show/Hide
Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\Scott\My Documents\aThe matrix\src\hscore\Makefile.win"
Executing  make...
make.exe -f "C:\Documents and Settings\Scott\My Documents\aThe matrix\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"  -I"C:/Documents and Settings/Scott/My Documents/aThe matrix/src"  -DBUILDING_DLL=1 

gcc.exe -c hscore_buysell.c -o hscore_buysell.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"  -I"C:/Documents and Settings/Scott/My Documents/aThe matrix/src"  -DBUILDING_DLL=1 

hscore_buysell.c: In function `printCategoryItems':
hscore_buysell.c:72: error: `for' loop initial declaration used outside C99 mode

hscore_buysell.c: In function `printShipList':

hscore_buysell.c:113: error: `for' loop initial declaration used outside C99 mode

hscore_buysell.c: In function `buyItem':
hscore_buysell.c:212: error: `for' loop initial declaration used outside C99 mode

hscore_buysell.c: In function `sellItem':
hscore_buysell.c:320: error: `for' loop initial declaration used outside C99 mode

hscore_buysell.c: In function `buyCommand':
hscore_buysell.c:539: error: `for' loop initial declaration used outside C99 mode

hscore_buysell.c: In function `sellCommand':
hscore_buysell.c:690: error: `for' loop initial declaration used outside C99 mode

make.exe: *** [hscore_buysell.o] Error 1

Execution terminated
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
tcsoccerman
Server Help Squatter


Age:31
Gender:Gender:Male
Joined: Jan 15 2007
Posts: 694
Location: Atlantis
Offline

PostPosted: Tue Jun 26, 2007 11:27 am    Post subject: Reply to topic Reply with quote

I fixed all those errors by changing the int i declaration up, and then just deleting the "int" in the for loop. that fixed the errors, and compiled a little further till i got to another int i problem. fixed that, the n "//" out the energy part, and finally got to the end of compiling and got tons of errors, and ridiculous ones too(in my mind).i get these errors:

total errors:122

Code: Show/Hide
Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\Scott\My Documents\aThe matrix\src\hscore\Makefile.win"
Executing  make...
make.exe -f "C:\Documents and Settings\Scott\My Documents\aThe matrix\src\hscore\Makefile.win" all
dllwrap.exe --output-def libhscore.def --implib libhscore.a hscore_teamnames.o hscore_buysell.o hscore_commands.o hscore_database.o hscore_freqman.o hscore_items.o hscore_itemsstub.o hscore_money.o hscore_moneystub.o hscore_mysql.o hscore_prizer.o hscore_rewards.o hscore_spawner.o hscore_storeman.o ../main/util.o  -L"C:/Documents and Settings/Scott/My Documents/zone file/asss-1.4.2/Dev-Cpp/lib" --no-export-all-symbols --add-stdcall-alias ../database/mysql.c "../../../../../../Documents and Settings/Scott/My Documents/aThe matrix/windeps/mysqldll.a"   -o hscore.dll

../database/mysql.c:13:18: asss.h: No such file or directory
../database/mysql.c:15:19: reldb.h: No such file or directory
../database/mysql.c:17:19: mysql.h: No such file or directory
../database/mysql.c:27: error: parse error before "query_callback"

../database/mysql.c:27: warning: no semicolon at end of struct or union
../database/mysql.c:32: error: parse error before '}' token
../database/mysql.c:35: error: parse error before "Iconfig"
../database/mysql.c:35: warning: data definition has no type or storage class
../database/mysql.c:36: error: parse error before "Ilogman"
../database/mysql.c:36: warning: data definition has no type or storage class
../database/mysql.c:38: error: syntax error before "const"

../database/mysql.c:40: error: parse error before "MPQueue"
../database/mysql.c:40: warning: data definition has no type or storage class
../database/mysql.c:41: error: parse error before "pthread_t"
../database/mysql.c:41: warning: data definition has no type or storage class
../database/mysql.c:42: error: syntax error before "volatile"
../database/mysql.c:44: error: parse error before "MYSQL"
../database/mysql.c:44: warning: data definition has no type or storage class
../database/mysql.c:47: error: syntax error before "void"
../database/mysql.c: In function `do_query':
../database/mysql.c:51: error: request for member `Log' in something not a structure or union
../database/mysql.c:51: error: `L_DRIVEL' undeclared (first use in this function)
../database/mysql.c:51: error: (Each undeclared identifier is reported only once

../database/mysql.c:51: error: for each function it appears in.)
../database/mysql.c:51: error: dereferencing pointer to incomplete type
../database/mysql.c:53: error: dereferencing pointer to incomplete type
../database/mysql.c:53: error: dereferencing pointer to incomplete type
../database/mysql.c:58: error: request for member `Log' in something not a structure or union
../database/mysql.c:58: error: `L_WARN' undeclared (first use in this function)
../database/mysql.c:59: error: dereferencing pointer to incomplete type
../database/mysql.c:59: error: dereferencing pointer to incomplete type
../database/mysql.c:60: error: dereferencing pointer to incomplete type
../database/mysql.c:60: error: dereferencing pointer to incomplete type
../database/mysql.c:67: error: dereferencing pointer to incomplete type
../database/mysql.c:68: error: dereferencing pointer to incomplete type
../database/mysql.c:68: error: dereferencing pointer to incomplete type
../database/mysql.c:72: error: `MYSQL_RES' undeclared (first use in this function)

../database/mysql.c:72: error: `res' undeclared (first use in this function)
../database/mysql.c:77: error: request for member `Log' in something not a structure or union
../database/mysql.c:78: error: dereferencing pointer to incomplete type
../database/mysql.c:78: error: dereferencing pointer to incomplete type
../database/mysql.c:79: error: dereferencing pointer to incomplete type
../database/mysql.c:79: error: dereferencing pointer to incomplete type
../database/mysql.c:83: error: dereferencing pointer to incomplete type
../database/mysql.c:84: error: dereferencing pointer to incomplete type
../database/mysql.c:84: error: `db_res' undeclared (first use in this function)
../database/mysql.c:84: error: parse error before ')' token
../database/mysql.c:84: error: dereferencing pointer to incomplete type
../database/mysql.c:84: error: parse error before ')' token
../database/mysql.c: At top level:
../database/mysql.c:92: error: syntax error before "void"
../database/mysql.c: In function `close_db':
../database/mysql.c:95: error: `MYSQL' undeclared (first use in this function)
../database/mysql.c:95: error: parse error before ')' token

../database/mysql.c: At top level:
../database/mysql.c:98: error: syntax error before "void"
../database/mysql.c: In function `work_thread':

../database/mysql.c:102: warning: assignment makes pointer from integer without a cast
../database/mysql.c:106: error: request for member `Log' in something not a structure or union
../database/mysql.c:106: error: `L_WARN' undeclared (first use in this function)
../database/mysql.c:116: error: request for member `Log' in something not a structure or union
../database/mysql.c:116: error: `L_INFO' undeclared (first use in this function)
../database/mysql.c:117: warning: comparison between pointer and integer
../database/mysql.c:119: error: request for member `Log' in something not a structure or union
../database/mysql.c:131: warning: assignment makes pointer from integer without a cast
../database/mysql.c:133: error: dereferencing pointer to incomplete type
../database/mysql.c:136: error: dereferencing pointer to incomplete type
../database/mysql.c:137: error: dereferencing pointer to incomplete type
../database/mysql.c:137: error: dereferencing pointer to incomplete type

../database/mysql.c: At top level:
../database/mysql.c:154: error: syntax error before "int"
../database/mysql.c:160: error: syntax error before "int"
../database/mysql.c:160: error: parse error before "cb"
../database/mysql.c: In function `Query':
../database/mysql.c:168: error: `fmt' undeclared (first use in this function)

../database/mysql.c:181: error: invalid application of `sizeof' to an incomplete type
../database/mysql.c:181: warning: assignment makes pointer from integer without a cast
../database/mysql.c:182: error: dereferencing pointer to incomplete type
../database/mysql.c:183: error: dereferencing pointer to incomplete type
../database/mysql.c:183: error: `cb' undeclared (first use in this function)
../database/mysql.c:184: error: dereferencing pointer to incomplete type
../database/mysql.c:185: error: `notifyfail' undeclared (first use in this function)

../database/mysql.c:186: error: dereferencing pointer to incomplete type
../database/mysql.c:188: error: dereferencing pointer to incomplete type
../database/mysql.c:213: error: dereferencing pointer to incomplete type
../database/mysql.c:213: error: dereferencing pointer to incomplete type
../database/mysql.c:168: error: `va_start' used in function with fixed args

../database/mysql.c:190: error: `va_start' used in function with fixed args

../database/mysql.c: At top level:
../database/mysql.c:221: error: syntax error before "int"
../database/mysql.c:221: error: parse error before '*' token
../database/mysql.c: In function `GetRowCount':
../database/mysql.c:223: error: `MYSQL_RES' undeclared (first use in this function)
../database/mysql.c:223: error: parse error before ')' token
../database/mysql.c: At top level:
../database/mysql.c:226: error: syntax error before "int"

../database/mysql.c:226: error: parse error before '*' token
../database/mysql.c: In function `GetFieldCount':
../database/mysql.c:228: error: `MYSQL_RES' undeclared (first use in this function)
../database/mysql.c:228: error: parse error before ')' token
../database/mysql.c: At top level:
../database/mysql.c:231: error: parse error before "db_row"
../database/mysql.c:231: error: parse error before '*' token
../database/mysql.c: In function `GetRow':
../database/mysql.c:233: error: `db_row' undeclared (first use in this function)
../database/mysql.c:233: error: parse error before ')' token
../database/mysql.c: At top level:
../database/mysql.c:236: error: syntax error before "const"

../database/mysql.c:236: error: parse error before '*' token
../database/mysql.c: In function `GetField':
../database/mysql.c:238: error: `MYSQL_ROW' undeclared (first use in this function)
../database/mysql.c:238: error: parse error before "row"
../database/mysql.c:238: error: `fieldnum' undeclared (first use in this function)
../database/mysql.c: At top level:
../database/mysql.c:241: error: syntax error before "int"

../database/mysql.c:246: error: syntax error before "int"

../database/mysql.c: In function `EscapeString':
../database/mysql.c:252: error: `FALSE' undeclared (first use in this function)

../database/mysql.c:254: error: `TRUE' undeclared (first use in this function)

../database/mysql.c: At top level:
../database/mysql.c:259: error: parse error before "Ireldb"
../database/mysql.c:261: error: `I_RELDB' undeclared here (not in a function)

../database/mysql.c:262: error: initializer element is not constant
../database/mysql.c:262: error: (near initialization for `my_int')
../database/mysql.c:262: error: parse error before "GetStatus"
../database/mysql.c:263: warning: excess elements in scalar initializer
../database/mysql.c:263: warning: (near initialization for `my_int')
../database/mysql.c:264: warning: excess elements in scalar initializer
../database/mysql.c:264: warning: (near initialization for `my_int')
../database/mysql.c:264: warning: excess elements in scalar initializer

../database/mysql.c:264: warning: (near initialization for `my_int')
../database/mysql.c:265: warning: excess elements in scalar initializer
../database/mysql.c:265: warning: (near initialization for `my_int')
../database/mysql.c:265: warning: excess elements in scalar initializer
../database/mysql.c:265: warning: (near initialization for `my_int')
../database/mysql.c:266: warning: excess elements in scalar initializer
../database/mysql.c:266: warning: (near initialization for `my_int')
../database/mysql.c:268: warning: excess elements in scalar initializer
../database/mysql.c:268: warning: (near initialization for `my_int')
../database/mysql.c:268: warning: data definition has no type or storage class
../database/mysql.c:271: error: syntax error before "int"
../database/mysql.c:271: error: parse error before "Imodman"
../database/mysql.c: In function `MM_mysql':
../database/mysql.c:275: error: `action' undeclared (first use in this function)
../database/mysql.c:275: error: `MM_LOAD' undeclared (first use in this function)
../database/mysql.c:277: error: `mm' undeclared (first use in this function)
../database/mysql.c:277: error: `I_CONFIG' undeclared (first use in this function)

../database/mysql.c:277: error: `ALLARENAS' undeclared (first use in this function)
../database/mysql.c:278: error: `I_LOGMAN' undeclared (first use in this function)
../database/mysql.c:280: error: `MM_FAIL' undeclared (first use in this function)
../database/mysql.c:287: error: request for member `GetStr' in something not a structure or union
../database/mysql.c:287: error: `GLOBAL' undeclared (first use in this function)
../database/mysql.c:290: error: request for member `GetStr' in something not a structure or union
../database/mysql.c:293: error: request for member `GetStr' in something not a structure or union
../database/mysql.c:296: error: request for member `GetStr' in something not a structure or union
../database/mysql.c:301: warning: assignment makes pointer from integer without a cast
../database/mysql.c:302: warning: assignment makes pointer from integer without a cast
../database/mysql.c:303: warning: assignment makes pointer from integer without a cast
../database/mysql.c:304: warning: assignment makes pointer from integer without a cast
../database/mysql.c:311: error: `MM_OK' undeclared (first use in this function)
../database/mysql.c:313: error: `MM_UNLOAD' undeclared (first use in this function)

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: *** [hscore.dll] Error 1

Execution terminated
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
Doc Flabby
Server Help Squatter


Joined: Feb 26 2006
Posts: 636
Offline

PostPosted: Tue Jun 26, 2007 12:24 pm    Post subject: Reply to topic Reply with quote

Compiling was a breeze for me, Everything good except.

Any settings i may have missed?

I'm getting this error for some reason after the first sucessful connection to the remote server its trying to connect to the local msyql server, which i dont want.

Code: Show/Hide
I <mysql> connecting to mysql db on remote.**, user *****, db ****
I <hscore_mysql> connecting to mysql db on remote.***, user ****, db ****
D <main> entering main loop
W <mysql> connect failed: Access denied for user '******'@'localhost'(using password: YES)
W <hscore_mysql> connect failed: Access denied for user '******'@'localhost' (using password: YES)

_________________
Rediscover online gaming. Get Subspace | STF The future...prehaps
Back to top
View users profile Send private message Add User to Ignore List
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Tue Jun 26, 2007 12:33 pm    Post subject: Reply to topic Reply with quote

@tcsoccerman
Add windeps/mysqlinc to the include directories too.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
tcsoccerman
Server Help Squatter


Age:31
Gender:Gender:Male
Joined: Jan 15 2007
Posts: 694
Location: Atlantis
Offline

PostPosted: Tue Jun 26, 2007 1:07 pm    Post subject: Reply to topic Reply with quote

i've already done that.
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
Dr Brain
Flip-flopping like a wind surfer


Age:38
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Wed Jun 27, 2007 12:05 am    Post subject: Reply to topic Reply with quote

Doc Flabby wrote:
Compiling was a breeze for me, Everything good except.

Any settings i may have missed?

I'm getting this error for some reason after the first sucessful connection to the remote server its trying to connect to the local msyql server, which i dont want.

Code: Show/Hide
I <mysql> connecting to mysql db on remote.**, user *****, db ****
I <hscore_mysql> connecting to mysql db on remote.***, user ****, db ****
D <main> entering main loop
W <mysql> connect failed: Access denied for user '******'@'localhost'(using password: YES)
W <hscore_mysql> connect failed: Access denied for user '******'@'localhost' (using password: YES)


Sounds like a mysql access problem. The only config for hscore_mysql is:

Hyperspace:Hostname
Hyperspace:User
Hyperspace:Password
Hyperspace:Database

hscore_mysql.c is more or less a clone of mysql.c.
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Dr Brain
Flip-flopping like a wind surfer


Age:38
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Wed Jun 27, 2007 12:08 am    Post subject: Reply to topic Reply with quote

Doc Flabby wrote:
Compiling was a breeze for me, Everything good except.

Any settings i may have missed?

I'm getting this error for some reason after the first sucessful connection to the remote server its trying to connect to the local msyql server, which i dont want.

Code: Show/Hide
I <mysql> connecting to mysql db on remote.**, user *****, db ****
I <hscore_mysql> connecting to mysql db on remote.***, user ****, db ****
D <main> entering main loop
W <mysql> connect failed: Access denied for user '******'@'localhost'(using password: YES)
W <hscore_mysql> connect failed: Access denied for user '******'@'localhost' (using password: YES)


Sounds like a mysql access problem. The only config for hscore_mysql is:

Hyperspace:Hostname
Hyperspace:User
Hyperspace:Password
Hyperspace:Database

hscore_mysql.c is more or less a clone of mysql.c.
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Dr Brain
Flip-flopping like a wind surfer


Age:38
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Wed Jun 27, 2007 12:11 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
tcsoccerman
Server Help Squatter


Age:31
Gender:Gender:Male
Joined: Jan 15 2007
Posts: 694
Location: Atlantis
Offline

PostPosted: Wed Jun 27, 2007 10:04 am    Post subject: Reply to topic Reply with quote

I got 212 errors labeled
Code: Show/Hide
Linker Error
. 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
Code: Show/Hide
Hyperspace:database
or
Code: Show/Hide
Hyperspace:host
?

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
View users profile Send private message Add User to Ignore List Send email AIM Address
KrynetiX
Seasoned Helper


Gender:Gender:Male
Joined: Jan 06 2003
Posts: 137
Location: Poconos
Offline

PostPosted: Wed Jun 27, 2007 11:53 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Custom Projects All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5  Next
Page 2 of 5

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 889 page(s) served in previous 5 minutes.

phpBB Created this page in 0.650426 seconds : 50 queries executed (73.2%): GZIP compression disabled