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
fm_shiplimits

 
Post new topic   Reply to topic Printable version
 View previous topic  how to make a python module for ASSS Post :: Post Configurable per-playerdata in ss  View next topic  
Author Message
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Thu May 17, 2007 3:39 pm    Post subject: fm_shiplimits Reply to topic Reply with quote

I couldn't find a topic for this so I'm starting one.

fm_shiplimits is a module that will restrict how many players can be of a certain ship and which freqs can have certain ships. An example would be 4/4 team split with or without capital ships. Or if you have an event where everyone must be in a certain ship you can use it for that too.

I also added speclock for vie clients like subgame has.

Code: Show/Hide
[fm_shiplimits]
; ShipN (1-8) = only|exclude,<freq (-1 no one)>,<max allowed (0 unlimited)>

; Example 1
; Freq 0 can use 1-4
; Freq 1 can use 5-8
; Ships 4 and 8 are capital ships, only 1 player can have it at a time
Ship1 = only,0,0
Ship2 = only,0,0
Ship3 = only,0,0
Ship4 = only,0,1
Ship5 = only,1,0
Ship6 = only,1,0
Ship7 = only,1,0
Ship8 = only,1,1

; Example 2
; Freq 0 can use Warbird and Jav
; Freq 1 can use Terr and Weasel
; All other ships can't be used (so other modules can *setship a nightwasp or something)
Ship1 = only,0,0
Ship2 = only,0,0
Ship3 = only,-1,0
Ship4 = only,-1,0
Ship5 = only,1,0
Ship6 = only,1,0
Ship7 = only,-1,0
Ship8 = only,-1,0

; whether or not players are notified when they try to change to an illegal ship
NotifyIllegal = 1

; spec lock vie clients
VIEMessage = This arena is Continuum-only. Please get Continuum client from http://www.subspace.net to play here
LockSpecVIE = 0


Note: At the time of writing this module is based off fm_normal from asss-1.4.3, so it may inherit bugs from there.
_________________
ss news




v1.3 (16k 1.4.3 doc dll src)

asss-fm_shiplimits-1.3.zip - 15.26 KB
File downloaded or viewed 49 time(s)
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
Aquarius
Guest


Offline

PostPosted: Thu May 17, 2007 6:49 pm    Post subject: Reply to topic Reply with quote

exactly what i needed
Back to top
Aquarius
Guest


Offline

PostPosted: Thu May 17, 2007 10:38 pm    Post subject: Reply to topic Reply with quote

Code: Show/Hide
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  -L"C:/Dev-Cpp/lib" --no-export-all-symbols --add-stdcall-alias ../ssdev/asss-1.4.3/windeps/pthreadGC2.dll   -o ../ssdev/hscore.dll

../ssdev/hscore/hscore_teamnames.o(.text+0x18f):hscore_teamnames.c: undefined reference to `LLRemove'
../ssdev/hscore/hscore_teamnames.o(.text+0x1ae):hscore_teamnames.c: undefined reference to `afree'
../ssdev/hscore/hscore_teamnames.o(.text+0x37a):hscore_teamnames.c: undefined reference to `delimcpy'
../ssdev/hscore/hscore_teamnames.o(.text+0x58c):hscore_teamnames.c: undefined reference to `amalloc'
../ssdev/hscore/hscore_teamnames.o(.text+0x5a9):hscore_teamnames.c: undefined reference to `astrncpy'
../ssdev/hscore/hscore_teamnames.o(.text+0x5c6):hscore_teamnames.c: undefined reference to `astrncpy'
../ssdev/hscore/hscore_teamnames.o(.text+0x602):hscore_teamnames.c: undefined reference to `astrncpy'
../ssdev/hscore/hscore_teamnames.o(.text+0x64c):hscore_teamnames.c: undefined reference to `LLAdd'
../ssdev/hscore/hscore_teamnames.o(.text+0xab5):hscore_teamnames.c: undefined reference to `astrncpy'
../ssdev/hscore/hscore_teamnames.o(.text+0x133e):hscore_teamnames.c: undefined reference to `current_ticks'
../ssdev/hscore/hscore_teamnames.o(.text+0x1375):hscore_teamnames.c: undefined reference to `current_ticks'
../ssdev/hscore/hscore_teamnames.o(.text+0x13ce):hscore_teamnames.c: undefined reference to `current_ticks'
../ssdev/hscore/hscore_teamnames.o(.text+0x1be5):hscore_teamnames.c: undefined reference to `LLInit'
../ssdev/hscore/hscore_teamnames.o(.text+0x1d77):hscore_teamnames.c: undefined reference to `afree'
../ssdev/hscore/hscore_teamnames.o(.text+0x1d7f):hscore_teamnames.c: undefined reference to `LLEnum'
../ssdev/hscore/hscore_teamnames.o(.text+0x1d92):hscore_teamnames.c: undefined reference to `LLEmpty'
../ssdev/hscore/hscore_commands.o(.text+0x53d):hscore_commands.c: undefined reference to `HashEnum'
../ssdev/hscore/hscore_database.o(.text+0x494):hscore_database.c: undefined reference to `afree'
../ssdev/hscore/hscore_database.o(.text+0x4a4):hscore_database.c: undefined reference to `LLEnum'
../ssdev/hscore/hscore_database.o(.text+0x4b4):hscore_database.c: undefined reference to `LLEmpty'
../ssdev/hscore/hscore_database.o(.text+0x52a):hscore_database.c: undefined reference to `hash_enum_afree'
../ssdev/hscore/hscore_database.o(.text+0x53f):hscore_database.c: undefined reference to `HashEnum'
../ssdev/hscore/hscore_database.o(.text+0x564):hscore_database.c: undefined reference to `HashEnum'
../ssdev/hscore/hscore_database.o(.text+0x5e8):hscore_database.c: undefined reference to `amalloc'
../ssdev/hscore/hscore_database.o(.text+0x61b):hscore_database.c: undefined reference to `astrncpy'
../ssdev/hscore/hscore_database.o(.text+0x632):hscore_database.c: undefined reference to `LLAdd'
../ssdev/hscore/hscore_database.o(.text+0x787):hscore_database.c: undefined reference to `afree'
../ssdev/hscore/hscore_database.o(.text+0x797):hscore_database.c: undefined reference to `LLEnum'
../ssdev/hscore/hscore_database.o(.text+0x7a7):hscore_database.c: undefined reference to `LLEmpty'
../ssdev/hscore/hscore_database.o(.text+0x824):hscore_database.c: undefined reference to `amalloc'
../ssdev/hscore/hscore_database.o(.text+0x857):hscore_database.c: undefined reference to `astrncpy'
../ssdev/hscore/hscore_database.o(.text+0x86e):hscore_database.c: undefined reference to `LLAdd'
../ssdev/hscore/hscore_database.o(.text+0x8ef):hscore_database.c: undefined reference to `astrncpy'
../ssdev/hscore/hscore_database.o(.text+0xa3f):hscore_database.c: undefined reference to `amalloc'
../ssdev/hscore/hscore_database.o(.text+0xa52):hscore_database.c: undefined reference to `LLInit'
../ssdev/hscore/hscore_database.o(.text+0xa62):hscore_database.c: undefined reference to `LLInit'
../ssdev/hscore/hscore_database.o(.text+0xa81):hscore_database.c: undefined reference to `LLAdd'
../ssdev/hscore/hscore_database.o(.text+0xab1):hscore_database.c: undefined reference to `astrncpy'
../ssdev/hscore/hscore_database.o(.text+0xae4):hscore_database.c: undefined reference to `astrncpy'
../ssdev/hscore/hscore_database.o(.text+0xb17):hscore_database.c: undefined reference to `astrncpy'
../ssdev/hscore/hscore_database.o(.text+0xe80):hscore_database.c: undefined reference to `amalloc'
../ssdev/hscore/hscore_database.o(.text+0xe9f):hscore_database.c: undefined reference to `LLAdd'
../ssdev/hscore/hscore_database.o(.text+0xecf):hscore_database.c: undefined reference to `astrncpy'
../ssdev/hscore/hscore_database.o(.text+0x151b):hscore_database.c: undefined reference to `amalloc'
../ssdev/hscore/hscore_database.o(.text+0x154f):hscore_database.c: undefined reference to `LLAdd'
../ssdev/hscore/hscore_database.o(.text+0x1787):hscore_database.c: undefined reference to `amalloc'
../ssdev/hscore/hscore_database.o(.text+0x1795):hscore_database.c: undefined reference to `LLInit'
../ssdev/hscore/hscore_database.o(.text+0x179d):hscore_database.c: undefined reference to `HashAlloc'
../ssdev/hscore/hscore_database.o(.text+0x19b9):hscore_database.c: undefined reference to `LLAdd'
../ssdev/hscore/hscore_database.o(.text+0x1b08):hscore_database.c: undefined reference to `amalloc'
../ssdev/hscore/hscore_database.o(.text+0x1b1b):hscore_database.c: undefined reference to `LLInit'
../ssdev/hscore/hscore_database.o(.text+0x1b50):hscore_database.c: undefined reference to `LLAdd'
../ssdev/hscore/hscore_database.o(.text+0x1b62):hscore_database.c: undefined reference to `LLEmpty'
../ssdev/hscore/hscore_database.o(.text+0x1b92):hscore_database.c: undefined reference to `astrncpy'
../ssdev/hscore/hscore_database.o(.text+0x1bc5):hscore_database.c: undefined reference to `astrncpy'
../ssdev/hscore/hscore_database.o(.text+0x1bfa):hscore_database.c: undefined reference to `astrncpy'
../ssdev/hscore/hscore_database.o(.text+0x1dac):hscore_database.c: undefined reference to `LLAdd'
../ssdev/hscore/hscore_database.o(.text+0x1efc):hscore_database.c: undefined reference to `amalloc'
../ssdev/hscore/hscore_database.o(.text+0x1f0d):hscore_database.c: undefined reference to `LLInit'
../ssdev/hscore/hscore_database.o(.text+0x1f42):hscore_database.c: undefined reference to `LLAdd'
../ssdev/hscore/hscore_database.o(.text+0x1f52):hscore_database.c: undefined reference to `LLEmpty'
../ssdev/hscore/hscore_database.o(.text+0x1f82):hscore_database.c: undefined reference to `astrncpy'
../ssdev/hscore/hscore_database.o(.text+0x1fb5):hscore_database.c: undefined reference to `astrncpy'
../ssdev/hscore/hscore_database.o(.text+0x2095):hscore_database.c: undefined reference to `LLInit'
../ssdev/hscore/hscore_database.o(.text+0x20a0):hscore_database.c: undefined reference to `LLInit'
../ssdev/hscore/hscore_database.o(.text+0x20f9):hscore_database.c: undefined reference to `afree'
../ssdev/hscore/hscore_database.o(.text+0x2104):hscore_database.c: undefined reference to `LLEnum'
../ssdev/hscore/hscore_database.o(.text+0x210f):hscore_database.c: undefined reference to `LLEmpty'
../ssdev/hscore/hscore_database.o(.text+0x211f):hscore_database.c: undefined reference to `hash_enum_afree'
../ssdev/hscore/hscore_database.o(.text+0x212d):hscore_database.c: undefined reference to `HashEnum'
../ssdev/hscore/hscore_database.o(.text+0x213b):hscore_database.c: undefined reference to `HashFree'
../ssdev/hscore/hscore_database.o(.text+0x2146):hscore_database.c: undefined reference to `afree'
../ssdev/hscore/hscore_database.o(.text+0x21fc):hscore_database.c: undefined reference to `afree'
../ssdev/hscore/hscore_database.o(.text+0x220a):hscore_database.c: undefined reference to `LLEnum'
../ssdev/hscore/hscore_database.o(.text+0x2218):hscore_database.c: undefined reference to `LLCount'
../ssdev/hscore/hscore_database.o(.text+0x2253):hscore_database.c: undefined reference to `LLEmpty'
../ssdev/hscore/hscore_database.o(.text+0x227b):hscore_database.c: undefined reference to `afree'
../ssdev/hscore/hscore_database.o(.text+0x2286):hscore_database.c: undefined reference to `LLEnum'
../ssdev/hscore/hscore_database.o(.text+0x2291):hscore_database.c: undefined reference to `LLCount'
../ssdev/hscore/hscore_database.o(.text+0x22c9):hscore_database.c: undefined reference to `LLEmpty'
../ssdev/hscore/hscore_database.o(.text+0x22e4):hscore_database.c: undefined reference to `afree'
../ssdev/hscore/hscore_database.o(.text+0x22f4):hscore_database.c: undefined reference to `LLEnum'
../ssdev/hscore/hscore_database.o(.text+0x2304):hscore_database.c: undefined reference to `LLEmpty'
../ssdev/hscore/hscore_database.o(.text+0x230c):hscore_database.c: undefined reference to `afree'
../ssdev/hscore/hscore_database.o(.text+0x231c):hscore_database.c: undefined reference to `LLEnum'
../ssdev/hscore/hscore_database.o(.text+0x232c):hscore_database.c: undefined reference to `LLEmpty'
../ssdev/hscore/hscore_database.o(.text+0x2337):hscore_database.c: undefined reference to `afree'
../ssdev/hscore/hscore_database.o(.text+0x2358):hscore_database.c: undefined reference to `LLEnum'
../ssdev/hscore/hscore_database.o(.text+0x2364):hscore_database.c: undefined reference to `LLCount'
../ssdev/hscore/hscore_database.o(.text+0x238e):hscore_database.c: undefined reference to `LLEmpty'
../ssdev/hscore/hscore_database.o(.text+0x23a8):hscore_database.c: undefined reference to `afree'
../ssdev/hscore/hscore_database.o(.text+0x23b4):hscore_database.c: undefined reference to `LLEnum'
../ssdev/hscore/hscore_database.o(.text+0x23c0):hscore_database.c: undefined reference to `LLCount'
../ssdev/hscore/hscore_database.o(.text+0x23ea):hscore_database.c: undefined reference to `LLEmpty'
../ssdev/hscore/hscore_database.o(.text+0x3181):hscore_database.c: undefined reference to `LLRemove'
../ssdev/hscore/hscore_database.o(.text+0x318c):hscore_database.c: undefined reference to `afree'
../ssdev/hscore/hscore_database.o(.text+0x32cb):hscore_database.c: undefined reference to `amalloc'
../ssdev/hscore/hscore_database.o(.text+0x32fa):hscore_database.c: undefined reference to `LLAdd'
../ssdev/hscore/hscore_database.o(.text+0x36f2):hscore_database.c: undefined reference to `LLRemove'
../ssdev/hscore/hscore_database.o(.text+0x36fd):hscore_database.c: undefined reference to `afree'
../ssdev/hscore/hscore_database.o(.text+0x385b):hscore_database.c: undefined reference to `amalloc'
../ssdev/hscore/hscore_database.o(.text+0x3869):hscore_database.c: undefined reference to `LLInit'
../ssdev/hscore/hscore_database.o(.text+0x3871):hscore_database.c: undefined reference to `HashAlloc'
../ssdev/hscore/hscore_database.o(.text+0x3cc0):hscore_database.c: undefined reference to `LLInit'
../ssdev/hscore/hscore_database.o(.text+0x3ccc):hscore_database.c: undefined reference to `LLInit'
../ssdev/hscore/hscore_items.o(.text+0x254):hscore_items.c: undefined reference to `strsplit'
../ssdev/hscore/hscore_items.o(.text+0xd87):hscore_items.c: undefined reference to `LLCount'
../ssdev/hscore/hscore_items.o(.text+0xd95):hscore_items.c: undefined reference to `LLEmpty'
../ssdev/hscore/hscore_items.o(.text+0x181c):hscore_items.c: undefined reference to `HashGetOne'
../ssdev/hscore/hscore_items.o(.text+0x1a8c):hscore_items.c: undefined reference to `HashGetOne'
../ssdev/hscore/hscore_items.o(.text+0x1b87):hscore_items.c: undefined reference to `amalloc'
../ssdev/hscore/hscore_items.o(.text+0x1bb5):hscore_items.c: undefined reference to `HashAdd'
../ssdev/hscore/hscore_items.o(.text+0x246d):hscore_items.c: undefined reference to `HashEnum'
../ssdev/hscore/hscore_items.o(.text+0x2518):hscore_items.c: undefined reference to `HashGetOne'
../ssdev/hscore/hscore_items.o(.text+0x253c):hscore_items.c: undefined reference to `amalloc'
../ssdev/hscore/hscore_items.o(.text+0x256a):hscore_items.c: undefined reference to `HashAdd'
../ssdev/hscore/hscore_money.o(.text+0x573):hscore_money.c: undefined reference to `LLCount'
../ssdev/hscore/hscore_money.o(.text+0x581):hscore_money.c: undefined reference to `LLEmpty'
../ssdev/hscore/hscore_money.o(.text+0x91c):hscore_money.c: undefined reference to `LLCount'
../ssdev/hscore/hscore_money.o(.text+0x92a):hscore_money.c: undefined reference to `LLEmpty'
../ssdev/hscore/hscore_money.o(.text+0xcf1):hscore_money.c: undefined reference to `LLCount'
../ssdev/hscore/hscore_money.o(.text+0xcff):hscore_money.c: undefined reference to `LLEmpty'
../ssdev/hscore/hscore_money.o(.text+0x10b6):hscore_money.c: undefined reference to `LLCount'
../ssdev/hscore/hscore_money.o(.text+0x10c4):hscore_money.c: undefined reference to `LLEmpty'
../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+0x3b0):hscore_mysql.c: undefined reference to `MPRemove'
../ssdev/hscore/hscore_mysql.o(.text+0x413):hscore_mysql.c: undefined reference to `afree'
../ssdev/hscore/hscore_mysql.o(.text+0x4c5):hscore_mysql.c: undefined reference to `amalloc'
../ssdev/hscore/hscore_mysql.o(.text+0x55b):hscore_mysql.c: undefined reference to `mysql_escape_string@12'
../ssdev/hscore/hscore_mysql.o(.text+0x5f1):hscore_mysql.c: undefined reference to `MPAdd'
../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'
../ssdev/hscore/hscore_mysql.o(.text+0x6ac):hscore_mysql.c: undefined reference to `MPInit'
../ssdev/hscore/hscore_mysql.o(.text+0x781):hscore_mysql.c: undefined reference to `astrdup'
../ssdev/hscore/hscore_mysql.o(.text+0x793):hscore_mysql.c: undefined reference to `astrdup'
../ssdev/hscore/hscore_mysql.o(.text+0x7a5):hscore_mysql.c: undefined reference to `astrdup'
../ssdev/hscore/hscore_mysql.o(.text+0x7b7):hscore_mysql.c: undefined reference to `astrdup'
../ssdev/hscore/hscore_mysql.o(.text+0x84a):hscore_mysql.c: undefined reference to `MPAdd'
../ssdev/hscore/hscore_mysql.o(.text+0x877):hscore_mysql.c: undefined reference to `MPDestroy'
../ssdev/hscore/hscore_mysql.o(.text+0x884):hscore_mysql.c: undefined reference to `afree'
../ssdev/hscore/hscore_mysql.o(.text+0x891):hscore_mysql.c: undefined reference to `afree'
../ssdev/hscore/hscore_mysql.o(.text+0x89e):hscore_mysql.c: undefined reference to `afree'
../ssdev/hscore/hscore_mysql.o(.text+0x8ab):hscore_mysql.c: undefined reference to `afree'
../ssdev/hscore/hscore_prizer.o(.text+0x780):hscore_prizer.c: undefined reference to `HashGetOne'
../ssdev/hscore/hscore_prizer.o(.text+0x791):hscore_prizer.c: undefined reference to `current_ticks'
../ssdev/hscore/hscore_prizer.o(.text+0x7a5):hscore_prizer.c: undefined reference to `afree'
../ssdev/hscore/hscore_prizer.o(.text+0x7b1):hscore_prizer.c: undefined reference to `amalloc'
../ssdev/hscore/hscore_prizer.o(.text+0x7bc):hscore_prizer.c: undefined reference to `current_ticks'
../ssdev/hscore/hscore_prizer.o(.text+0x7e1):hscore_prizer.c: undefined reference to `HashReplace'
../ssdev/hscore/hscore_prizer.o(.text+0x9c9):hscore_prizer.c: undefined reference to `HashAlloc'
../ssdev/hscore/hscore_storeman.o(.text+0x1cd):hscore_storeman.c: undefined reference to `strsplit'
../ssdev/hscore/hscore_storeman.o(.text+0x556):hscore_storeman.c: undefined reference to `LLAdd'
../ssdev/hscore/hscore_buysell.o(.text+0x6b0):hscore_buysell.c: undefined reference to `LLInit'
../ssdev/hscore/hscore_buysell.o(.text+0x8f7):hscore_buysell.c: undefined reference to `LLCount'
../ssdev/hscore/hscore_buysell.o(.text+0x9c7):hscore_buysell.c: undefined reference to `LLEmpty'
../ssdev/hscore/hscore_buysell.o(.text+0xb3f):hscore_buysell.c: undefined reference to `LLInit'
../ssdev/hscore/hscore_buysell.o(.text+0xd84):hscore_buysell.c: undefined reference to `LLCount'
../ssdev/hscore/hscore_buysell.o(.text+0xe54):hscore_buysell.c: undefined reference to `LLEmpty'
../ssdev/hscore/hscore_buysell.o(.text+0x18fa):hscore_buysell.c: undefined reference to `strsplit'
../ssdev/hscore/hscore_spawner.o(.text+0x44bb):hscore_spawner.c: undefined reference to `current_ticks'
../ssdev/hscore/hscore_spawner.o(.text+0x465c):hscore_spawner.c: undefined reference to `current_ticks'
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
Bak
?ls -s
0 in


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

PostPosted: Fri May 18, 2007 3:08 am    Post subject: Reply to topic Reply with quote

compile it with util.c
_________________
SubSpace Discretion: A Third Generation SubSpace Client
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Fri May 18, 2007 4:34 am    Post subject: Reply to topic Reply with quote

And link to mysqldll.a in windeps. Really you should create a separate project to separate out the hs modules from non-hs modules.
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: Sat Mar 01, 2008 11:48 pm    Post subject: Reply to topic Reply with quote

i added a feature for ship limit by points.

basically in the shipok function i added this :

Code: Show/Hide

else if(ad->ship[ship].pointlimit > 0)
   {
        int points;
        pd->Lock();
        points = stats->GetStat(p, STAT_FLAG_POINTS, 0) + stats->GetStat(p, STAT_KILL_POINTS, 0);
        pd->Unlock();
        if(points < ad->ship[ship].pointlimit)
            return 0;
    }


i'm not sure what exactly makes up a player points so i stuck with that.
the settings in config follows the same pattern as smong initialy had. for each ship simply add another comma, followed by the amount of points needed to use that ship (i didn't implement minium amount as that did not seem reasonable. i could add it if needed).

i hope it is clear that i didn't make this module, smong did. i just added the points.

oh, and smong it would always be good if you, the initial maker of the module, could check over what i have added.

edit:i never did test this new feature.




src, dll, and new .conf

fm_shiplimits.zip - 11.76 KB
File downloaded or viewed 37 time(s)
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Sun Mar 02, 2008 1:03 pm    Post subject: Reply to topic Reply with quote

I had a quick look at the code. First thing I notice, you didn't change any of the comments/version number icon_sad.gif

Next thing, you put the if-statement in the wrong place. The if-else block you edited is looking at the mode. You want to put it after that, for example:
Code: Show/Hide

is_shipok(...)
{
...
   if (mode == MODE_ONLY)
      // blah
   else if (mode == MODE_EXCLUDE)
      // blah
   else
      ok = 1;

   if (ok)
   {
      // do point check here
   }

   return ok;
}

The other thing is you did "return 0", you should try and stay with the conventions of the code you are editing, ie: set "ok" to 1 or 0 instead of returning 1 or 0.
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: Sun Mar 02, 2008 3:17 pm    Post subject: Reply to topic Reply with quote

oh i see how that function is setup now. should have noticed that. i will add to the version at top.

new correct version attached




src, .dll, .conf, .txt

fm_shiplimits.zip - 12.48 KB
File downloaded or viewed 33 time(s)
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Sun Mar 02, 2008 7:17 pm    Post subject: Reply to topic Reply with quote

That's still not right, also I notice you based it on version 1.2 instead of 1.3 which was the latest.

So I went and edited it to work and tested it. I also recoded the notify message so it can tell the player if they need more points or if they are on the wrong freq (previously it would have just assumed it was the wrong freq). I also merged in changes from fm_normal 1.4.3 -> 1.4.4. So here's 1.4 attached.




1.4.4 doc dll src

asss-fm_shiplimits-1.4.zip - 16.27 KB
File downloaded or viewed 36 time(s)
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: Sun Mar 02, 2008 7:39 pm    Post subject: Reply to topic Reply with quote

i fail.
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Sun Mar 02, 2008 7:45 pm    Post subject: Reply to topic Reply with quote

Nah, you got all the asss specific code right (grabbing the stats interface, extending the arena settings struct, etc), you just didn't get the program logic right.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Custom Projects All times are GMT - 5 Hours
Page 1 of 1

 
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: 637 page(s) served in previous 5 minutes.

phpBB Created this page in 0.556053 seconds : 38 queries executed (90.9%): GZIP compression disabled