| Author | Message | 
	
		| Dr Brain Flip-flopping like a wind surfer
 
  
 Age:39
 Gender:
  Joined: Dec 01 2002
 Posts: 3502
 Location: Hyperspace
 Offline
 
 | 
			
			  | 
				
					|  Posted: Fri Apr 13, 2007 9:25 am     Post subject: Hyperspace core modules |  |   |  |  
				| 
 |  
				| Ok everyone, here's the core modules from hyperspace. The ones that track money, exp, ships and items persistently across player sessions. It also includes our named team freq manager. 
 I'm realeasing it because it'll no longer hurt the zone to have others using it, and I'm curious to see what other people will do with it.
 
 The modules should work on both windows and linux, though I haven't tried it in windows for a long while.
 
 To get spawner to compile, you'll need the modification to game.c/game.h in 5bbdeb509511dd9efbf5872ebf656bb3e0a7615b of the branch asss.asss.hs. Or if you don't want/need items to affect energy viewing, you can just comment out the offending sections in the spawner.
 
 You'll need to set up mysql in global.conf. You can use the same settings as the alias database if you wish.
 
 	| 
hyperspace:hostname
 hyperspace:user
 hyperspace:password
 hyperspace:database
 
 | 
 
 add the following modules to the bottom of modules.conf:
 
 	| 
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
 
 | 
 
 Run the zone once to get it to create the tables.
 
 Get yourself a mysql client where you can add rows easily. It will help. I use SQLyog. Then start adding item types, items, and item properties.
 
 In your (public) arenas, you should add the following to the arena.conf.
 
 	| 
Hyperspace:ArenaIdentifier = main
 
 | 
 
 and use "main" in all the mysql rows you want to be associated with that arena.
 
 I suggest adding the following modules to each arena you want to have items in:
 
 	| 
hscore_teamnames
 hscore_buysell
 hscore_storeman
 hscore_commands
 hscore_spawner
 hscore_rewards
 
 | 
 
 
 Also, the arena settings:
 
 	| 
<ship>:buyprice
 <ship>:sellprice
 <ship>:exprequired
 <ship>:InitItems = <item1>,<item2>,<...>
 
 | 
 will be helpful.
 
 
 One basic starter tip: items have to be added to categories to show up in an arena.
 
 If you have any questions, basic or not, ask away. I'll be happy to answer.
 
 EDIT: Updated version to 1008.
 _________________
 Hyperspace Owner
 
 Smong> so long as 99% deaths feel lame it will always be hyperspace to me
 
 
 
 
  hscore-1008.zip - 73.86 KB File downloaded or viewed 205 time(s)
 
 
 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:33
 Gender:
  Joined: Jan 15 2007
 Posts: 694
 Location: Atlantis
 Offline
 
 | 
			
			  | 
				
					|  Posted: Sat Apr 14, 2007 12:43 am     Post subject: |  |   |  |  
				| 
 |  
				| How curteus. could come in handy.  . |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Animate Dreams Gotta buy them all!
 (Consumer whore)
 
  
 Age:38
 Gender:
  Joined: May 01 2004
 Posts: 821
 Location: Middle Tennessee
 Offline
 
 | 
			
			  | 
				
					|  Posted: Sat Apr 14, 2007 8:27 pm     Post subject: |  |   |  |  
				| 
 |  
				| By any chance, do you still have the old modules, too? The ones that are up in the wiki on "Writing Modules for Hyperspace". Those are pretty helpful sometimes, but I'm pretty sure there's more than what's there. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Dr Brain Flip-flopping like a wind surfer
 
  
 Age:39
 Gender:
  Joined: Dec 01 2002
 Posts: 3502
 Location: Hyperspace
 Offline
 
 | 
			
			  | 
				
					|  Posted: Sat Apr 14, 2007 10:38 pm     Post subject: |  |   |  |  
				| 
 |  
				| I'm not exactly sure what you mean. Those stubs are written around the real files that I released in this thread. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Animate Dreams Gotta buy them all!
 (Consumer whore)
 
  
 Age:38
 Gender:
  Joined: May 01 2004
 Posts: 821
 Location: Middle Tennessee
 Offline
 
 | 
			
			  | 
				
					|  Posted: Sun Apr 15, 2007 12:43 am     Post subject: |  |   |  |  
				| 
 |  
				| Well, I didn't really look at this stuff yet. I was pretty sure that page was older than the item system you have now, and I'm pretty sure you changed a lot between systems, so I figured there was an older version of a lot of the modules. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Dr Brain Flip-flopping like a wind surfer
 
  
 Age:39
 Gender:
  Joined: Dec 01 2002
 Posts: 3502
 Location: Hyperspace
 Offline
 
 | 
			
			  | 
				
					|  Posted: Sun Apr 15, 2007 9:54 am     Post subject: |  |   |  |  
				| 
 |  
				| A few bug fixes, but that's about it. Also some improvements in the spawner, but you won't see much of a difference in the header files. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| aquarius Guest
 
 
 Offline
 
 | 
			
			  | 
				
					|  Posted: Mon May 07, 2007 10:54 am     Post subject: |  |   |  |  
				| 
 |  
				| i get lots of compile errors here on windows |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Dr Brain Flip-flopping like a wind surfer
 
  
 Age:39
 Gender:
  Joined: Dec 01 2002
 Posts: 3502
 Location: Hyperspace
 Offline
 
 | 
			
			  | 
				
					|  Posted: Mon May 07, 2007 2:05 pm     Post subject: |  |   |  |  
				| 
 |  
				| Care to post them? |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| KrynetiX Seasoned Helper
 
  
 Gender:
  Joined: Jan 06 2003
 Posts: 137
 Location: Poconos
 Offline
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Dr Brain Flip-flopping like a wind surfer
 
  
 Age:39
 Gender:
  Joined: Dec 01 2002
 Posts: 3502
 Location: Hyperspace
 Offline
 
 | 
			
			  | 
				
					|  Posted: Mon May 07, 2007 3:12 pm     Post subject: |  |   |  |  
				| 
 |  
				| It'd be pretty helpful if you posted the entire list of problems, before you started modifying files. You shouldn't have ANY compiler issues when compiling the hscore. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| KrynetiX Seasoned Helper
 
  
 Gender:
  Joined: Jan 06 2003
 Posts: 137
 Location: Poconos
 Offline
 
 | 
			
			  | 
				
					|  Posted: Mon May 07, 2007 3:23 pm     Post subject: |  |   |  |  
				| 
 |  
				| Compiler: Default compiler Building Makefile: "C:\Documents and Settings\Jesse\Desktop\Makefile.win"
 Executing  make...
 make.exe -f "C:\Documents and Settings\Jesse\Desktop\Makefile.win" all
 g++.exe -c dllmain.cpp -o dllmain.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include"  -I"C:/asss-1.4.2/src"  -I"C:/asss-1.4.2/src/include"  -I"C:/asss-1.4.2/windeps"  -DBUILDING_DLL=1
 
 g++.exe -c hscore/hscore_buysell.c -o hscore/hscore_buysell.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include"  -I"C:/asss-1.4.2/src"  -I"C:/asss-1.4.2/src/include"  -I"C:/asss-1.4.2/windeps"  -DBUILDING_DLL=1
 
 In file included from C:/asss-1.4.2/src/include/defs.h:200,
 from C:/asss-1.4.2/src/include/asss.h:15,
 from hscore/hscore_buysell.c:4:
 C:/asss-1.4.2/src/include/win32compat.h:63: error: expected `,' or `...' before "template"
 
 hscore/hscore_buysell.c: In function `void printAllCategories(Player*)':
 hscore/hscore_buysell.c:36: error: invalid conversion from `void*' to `Category*'
 
 hscore/hscore_buysell.c: In function `void printCategoryItems(Player*, Category*)':
 hscore/hscore_buysell.c:68: error: invalid conversion from `void*' to `Item*'
 
 hscore/hscore_buysell.c: In function `void buyItem(Player*, Item*, int, int)':
 
 hscore/hscore_buysell.c:167: error: invalid conversion from `void*' to `Ihscorestoreman*'
 
 hscore/hscore_buysell.c:228: error: invalid conversion from `void*' to `Store*'
 hscore/hscore_buysell.c:237: error: invalid conversion from `void*' to `Store*'
 
 hscore/hscore_buysell.c: In function `void sellItem(Player*, Item*, int, int)':
 hscore/hscore_buysell.c:276: error: invalid conversion from `void*' to `Ihscorestoreman*'
 
 hscore/hscore_buysell.c:338: error: invalid conversion from `void*' to `Store*'
 hscore/hscore_buysell.c:347: error: invalid conversion from `void*' to `Store*'
 
 hscore/hscore_buysell.c: In function `void buyCommand(const char*, const char*, Player*, const Target*)':
 hscore/hscore_buysell.c:552: error: invalid conversion from `void*' to `Category*'
 
 hscore/hscore_buysell.c: At global scope:
 hscore/hscore_buysell.c:802: error: external linkage required for symbol 'info_hscore_buysell' because of 'dllexport' attribute.
 hscore/hscore_buysell.c: In function `int MM_hscore_buysell(int, Imodman*, Arena*)':
 hscore/hscore_buysell.c:810: error: invalid conversion from `void*' to `Ilogman*'
 hscore/hscore_buysell.c:811: error: invalid conversion from `void*' to `Ichat*'
 hscore/hscore_buysell.c:812: error: invalid conversion from `void*' to `Iconfig*'
 hscore/hscore_buysell.c:813: error: invalid conversion from `void*' to `Icmdman*'
 hscore/hscore_buysell.c:814: error: invalid conversion from `void*' to `Icapman*'
 
 hscore/hscore_buysell.c:815: error: invalid conversion from `void*' to `Ihscoremoney*'
 hscore/hscore_buysell.c:816: error: invalid conversion from `void*' to `Ihscoreitems*'
 
 hscore/hscore_buysell.c:817: error: invalid conversion from `void*' to `Ihscoredatabase*'
 hscore/hscore_buysell.c:853: error: invalid conversion from `void (*)(Player*, int)' to `void*'
 hscore/hscore_buysell.c:862: error: invalid conversion from `void (*)(Player*, int)' to `void*'
 
 make.exe: *** [hscore/hscore_buysell.o] Error 1
 
 Execution terminated
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Dr Brain Flip-flopping like a wind surfer
 
  
 Age:39
 Gender:
  Joined: Dec 01 2002
 Posts: 3502
 Location: Hyperspace
 Offline
 
 | 
			
			  | 
				
					|  Posted: Mon May 07, 2007 3:30 pm     Post subject: |  |   |  |  
				| 
 |  
				| Were you able to get the rest of ASSS to compile? I'm not sure you've got dev-c++ set up right. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| KrynetiX Seasoned Helper
 
  
 Gender:
  Joined: Jan 06 2003
 Posts: 137
 Location: Poconos
 Offline
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Animate Dreams Gotta buy them all!
 (Consumer whore)
 
  
 Age:38
 Gender:
  Joined: May 01 2004
 Posts: 821
 Location: Middle Tennessee
 Offline
 
 | 
			
			  | 
				
					|  Posted: Mon May 07, 2007 3:40 pm     Post subject: |  |   |  |  
				| 
 |  
				|  	  | KrynetiX wrote: |  	  | ...my brother helped me and showed me that i had to take the 'int' out of the ( )'s... | 
 
 I'm no expert programmer, but taking ints out of ()s sets off klaxons in my head. Are you sure that was the right thing to do?
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| KrynetiX Seasoned Helper
 
  
 Gender:
  Joined: Jan 06 2003
 Posts: 137
 Location: Poconos
 Offline
 
 | 
			
			  | 
				
					|  Posted: Mon May 07, 2007 3:52 pm     Post subject: |  |   |  |  
				| 
 |  
				| i don't know, but it compiles when i do, and doesn't when i don't. 
 after i change all that it stops at #include mysql.h
 
 brain suggested i compile asss first
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| KrynetiX Seasoned Helper
 
  
 Gender:
  Joined: Jan 06 2003
 Posts: 137
 Location: Poconos
 Offline
 
 | 
			
			  | 
				
					|  Posted: Mon May 07, 2007 4:42 pm     Post subject: |  |   |  |  
				| 
 |  
				| Compiler: Default compiler Building Makefile: "C:\Documents and Settings\Jesse\Desktop\Makefile.win"
 Executing  make...
 make.exe -f "C:\Documents and Settings\Jesse\Desktop\Makefile.win" all
 dllwrap.exe --output-def libProject3.def --implib libProject3.a ../../../hscore/hscore_buysell.o ../../../hscore/hscore_commands.o ../../../hscore/hscore_database.o ../../../hscore/hscore_freqman.o ../../../hscore/hscore_items.o ../../../hscore/hscore_itemsstub.o ../../../hscore/hscore_money.o ../../../hscore/hscore_moneystub.o ../../../hscore/hscore_mysql.o ../../../hscore/hscore_prizer.o ../../../hscore/hscore_rewards.o ../../../hscore/hscore_spawner.o ../../../hscore/hscore_storeman.o ../../../hscore/hscore_teamnames.o ../../../asss-1.4.2/src/main/util.o  -L"C:/Dev-Cpp/lib" --no-export-all-symbols --add-stdcall-alias ../../../asss-1.4.2/windeps/pthreadGC2.dll ../../../asss-1.4.2/windeps/mysqlinc/mysql.h ../../../asss-1.4.2/windeps/mysqlinc/mysqld_error.h ../../../asss-1.4.2/windeps/mysqlinc/mysql_version.h ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h   -o Project3.dll
 
 In file included from ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:57:
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:116: error: syntax error before "SOCKET"
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:116: warning: no semicolon at end of struct or union
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:135: error: syntax error before '}' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:135: warning: data definition has no type or storage class
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:167: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:168: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:169: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:170: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:171: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:172: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:173: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:175: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:176: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:180: error: syntax error before "s"
 
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:168: error: syntax error before "NET"
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:168: warning: no semicolon at end of struct or union
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:205: error: syntax error before '}' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:205: warning: data definition has no type or storage class
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:214: error: syntax error before "MYSQL"
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:214: warning: no semicolon at end of struct or union
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:220: error: syntax error before '}' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:220: warning: data definition has no type or storage class
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:235: error: syntax error before "NET"
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:235: warning: no semicolon at end of struct or union
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:241: error: conflicting types for 'last_errno'
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:118: error: previous declaration of 'last_errno' was here
 
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:244: error: conflicting types for 'last_error'
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:121: error: previous declaration of 'last_error' was here
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:245: error: syntax error before '}' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:245: warning: data definition has no type or storage class
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:282: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:283: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:284: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:285: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:287: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:288: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:289: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:291: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:292: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:293: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:294: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:295: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:296: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:297: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:298: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:300: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:300: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:300: warning: data definition has no type or storage class
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:301: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:304: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:306: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:306: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:312: warning: data definition has no type or storage class
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:313: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:314: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:315: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:316: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:318: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:319: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:322: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:324: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:327: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:329: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:336: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:337: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:339: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:342: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:343: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:345: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:350: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:353: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:357: error: syntax error before '*' token
 
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:362: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:363: error: syntax error before '*' token
 
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:364: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:366: error: syntax error before '*' token
 
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:367: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:368: error: syntax error before '*' token
 
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:369: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:372: error: syntax error before '*' token
 
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:373: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:374: error: syntax error before '*' token
 
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:374: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:374: warning: data definition has no type or storage class
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:375: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:375: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:375: warning: data definition has no type or storage class
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:376: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:376: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:377: warning: data definition has no type or storage class
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:378: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:378: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:378: warning: data definition has no type or storage class
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:379: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:379: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:379: warning: data definition has no type or storage class
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:380: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:380: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:380: warning: data definition has no type or storage class
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:381: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:383: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:384: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:386: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:388: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:390: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:391: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:392: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:395: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:399: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:408: error: syntax error before ')' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:409: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:411: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:411: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:411: warning: data definition has no type or storage class
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:412: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:412: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:416: warning: data definition has no type or storage class
 
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:417: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:418: error: syntax error before '*' token
 
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:420: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:439: error: syntax error before '*' token
 
 ../../../asss-1.4.2/windeps/mysqlinc/mysql.h:441: error: syntax error before '*' token
 
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:116: error: syntax error before "my_socket"
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:116: warning: no semicolon at end of struct or union
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:123: error: syntax error before "return_errno"
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:123: warning: data definition has no type or storage class
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:133: error: syntax error before "no_send_ok"
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:133: warning: data definition has no type or storage class
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:134: error: syntax error before "query_cache_query"
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:134: warning: data definition has no type or storage class
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:135: warning: data definition has no type or storage class
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:167: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:168: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:169: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:170: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:171: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:172: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:173: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:175: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:176: error: syntax error before '*' token
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:180: error: syntax error before "s"
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:209: error: syntax error before "my_bool"
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:209: warning: no semicolon at end of struct or union
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:213: error: syntax error before "const_item"
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:213: warning: data definition has no type or storage class
 
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:214: warning: data definition has no type or storage class
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:233: error: syntax error before "my_bool"
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:234: error: syntax error before "check_scramble"
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:235: error: syntax error before "my_bool"
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:235: warning: data definition has no type or storage class
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:241: error: syntax error before "my_init"
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:241: warning: data definition has no type or storage class
 
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:244: error: syntax error before "my_thread_init"
 ../../../asss-1.4.2/windeps/mysqlinc/mysql_com.h:244: warning: data definition has no type or storage class
 
 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: *** [Project3.dll] Error 1
 
 Execution terminated
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Aquarius Guest
 
 
 Offline
 
 | 
			
			  | 
				
					|  Posted: Wed May 16, 2007 2:47 pm     Post subject: d |  |   |  |  
				| 
 |  
				| Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\Makefile.win"
 Executing  make...
 make.exe -f "C:\Dev-Cpp\Makefile.win" all
 gcc.exe -c ../ssdev/hscore/hscore_commands.c -o ../ssdev/hscore/hscore_commands.o -I"C:/Dev-Cpp/include"  -I"C:/ssdev/asss-1.4.3/src"  -I"C:/ssdev/asss-1.4.3/src/include"  -I"C:/ssdev/asss-1.4.3/windeps"  -DBUILDING_DLL=1
 
 ../ssdev/hscore/hscore_commands.c: In function `shipsCommand':
 
 ../ssdev/hscore/hscore_commands.c:39: error: 'for' loop initial declaration used outside C99 mode
 
 make.exe: *** [../ssdev/hscore/hscore_commands.o] Error 1
 
 Execution terminated
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Dr Brain Flip-flopping like a wind surfer
 
  
 Age:39
 Gender:
  Joined: Dec 01 2002
 Posts: 3502
 Location: Hyperspace
 Offline
 
 | 
			
			  | 
				
					|  Posted: Thu May 17, 2007 12:26 am     Post subject: |  |   |  |  
				| 
 |  
				| Looks like that line has a for loop with an int declaration inside it. Change the int i to just i, and put "int i;" just below the nearest { above. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Aquarius Guest
 
 
 Offline
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Dr Brain Flip-flopping like a wind surfer
 
  
 Age:39
 Gender:
  Joined: Dec 01 2002
 Posts: 3502
 Location: Hyperspace
 Offline
 
 | 
			
			  | 
				
					|  Posted: Thu May 17, 2007 10:37 am     Post subject: |  |   |  |  
				| 
 |  
				| Add an include for C:/ssdev/asss-1.4.3/src |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Aquarius Guest
 
 
 Offline
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Aquarius Guest
 
 
 Offline
 
 | 
			
			  | 
				
					|  Posted: Thu May 17, 2007 5:06 pm     Post subject: |  |   |  |  
				| 
 |  
				| and this is what DevCpp displays in red after that compile 
 if (energyViewing) game->SetPlayerEnergyViewing(p, ENERGY_SEE_ALL);
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Dr Brain Flip-flopping like a wind surfer
 
  
 Age:39
 Gender:
  Joined: Dec 01 2002
 Posts: 3502
 Location: Hyperspace
 Offline
 
 | 
			
			  | 
				
					|  Posted: Thu May 17, 2007 9:44 pm     Post subject: |  |   |  |  
				| 
 |  
				| Either use the hyperspace updates in monotone, or remove all the lines related to energy viewing in spawner. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Aquarius Guest
 
 
 Offline
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Aquarius Guest
 
 
 Offline
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  |