Server Help

ASSS Custom Projects - <c> initial

Bak - Sat Dec 30, 2006 5:33 pm
Post subject: <c> initial
With this module loaded, you can define additional settings for each ship:

InitialMultifire
InitialProx
InitialBounce
InitialSuper
InitialShield
InitialShrapnel

All of them default to 0. Source and precompiled Windows .dll attached.
Chambahs - Sat Dec 30, 2006 10:33 pm
Post subject:
http://forums.minegoboom.com/viewtopic.php?p=61855#61855

Already made one in python icon_razz.gif

See: as.py
Bak - Sat Dec 30, 2006 10:43 pm
Post subject:
looks cool, cept yours is hardcoded, must be attached, and uses a timer biggrin.gif
Animate Dreams - Sun Jan 07, 2007 12:26 am
Post subject:
Thanks, I've wanted something like this for quite a while. I'll have to look through the source and see what kind of implementation you've used without using a timer. I tried to stay away from a timer, but I couldn't figure out how to do it any other way, and it felt like a hack solution.
tcsoccerman - Tue May 08, 2007 5:08 pm
Post subject:
can you give a walkthrough on how to do this, i know to put the .dll in the bin folder, and put initial.c in....i put it in funky...and then do

funky:initial

in modules.conf

but what about actually adding initials in arena.conf.

also, i did all that, and it has an error loading

funky:initial

even though it's all right.

ty.
Animate Dreams - Wed May 09, 2007 12:05 am
Post subject:
Lol, the way that works is dllname:modulename. So since initial was compiled to an initial.dll, it'd be initial:initial. You shouldn't have put initial.c in funky, btw. You should create a new folder called initial, and create a makefile(if one isn't already there) just for it. It might be nice one day to compile multiple modules into one dll, but at least for now, you should probably stick to one module per dll.
tcsoccerman - Wed May 09, 2007 5:46 pm
Post subject:
that explains a lot
tcsoccerman - Wed May 09, 2007 6:40 pm
Post subject:
i've never made a .dll or makefile b4.
Animate Dreams - Wed May 09, 2007 6:50 pm
Post subject:
Here, I believe this make file would work for initial.c, just put it and initial.c in a folder called "initial" under the src directory. You'll have to change the extension from .txt to .mk, though, forums wouldn't let me upload a .mk file.

Hope this helps(and hope this works, lol).
tcsoccerman - Fri Jun 22, 2007 2:05 pm
Post subject:
Also, how do you configure it/actually set initials to ships. Is there a .conf file that i never got? I can't seem to find one... Maybe you use arena.conf like other modules and do something like this..
[initial]
blah
blah

but how?
ty.
Animate Dreams - Fri Jun 22, 2007 2:37 pm
Post subject:
Well, I would personally just add it to the end of the .conf files for each of the ships. Like this:

Code: Show/Hide
[Warbird]
InitialSpeed=blah
...
...
;Bak-'s Initial Settings
InitialProx]=0
InitialMultifire=1
InitialSuper=1


I think you get the idea. And just as with every setting, you can define these anywhere, as long as they get #included into the arena.conf file.

You know, I always meant to go back and see if I could easily modify this module to create a CB_SPAWN. I never did get around to it. =\
JoWie - Sun Jul 01, 2007 6:36 am
Post subject:
I am not sure, but it appears this module doesn't work with shipreset
Smong - Sun Jul 01, 2007 9:45 am
Post subject:
It doesn't, there are a few fixes you can try.
- The best one, implement the game interface so you can catch calls to ShipReset. All calls would be forwarded to the real game module (need to load initial before game).

- Monitor the bounty in the position packet to see if it equals initial bounty. This conflicts with the current detection methods (shipchange callback, etc), so you would either need to add a bunch of flags or drop the other callbacks. Also this method isn't 100% foolproof. You would need a cool down period to avoid prizing twice and it won't work with per-player settings or other modules that prize initial stuff.

- Cooperate with whichever modules are doing the ship resetting, for example implement the flagreset/flag game win callback.
JoWie - Sun Jul 01, 2007 3:57 pm
Post subject:
mm i will try adding a callback to game
tcsoccerman - Tue Jan 19, 2010 9:04 pm
Post subject:
This module has become outdated with the 1.5.0 update. I went ahead and updated it. (Just combined ShipChange and FreqChange callbacks to ShipFreqChange callback).

I also added a .mk, changed the BOOL in InitialPlayerData struct to an int since I use a c-compiler, and added an example .conf file.

For those interested.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group