[Script] [Update] Space Invasion v1.2 (INCLUDED IN HEDGEWARS)

1 reply [Last post]
Wuzzy
Wuzzy's picture
User offline. Last seen 29 weeks 3 days ago. Offline
Joined: 2012-06-20
Posts: 1304

TL;DR:
Oh my Hog! This text is looong. Basically it’s about how I updated the weird official script “Space Invasion” and I write in detail what I have changed and how you can try it out for yourselves.


Hi!

A few of you have probably tried or heard of the Space Invasion script. This script is official part of Hedgewars and is a somewhat unusual game style. You can try it out in your Hedgewars installation right now without installing anything by selecting “Space Invasion” as game style.

You can read how this game style works here.

I have made some modifications to the script, mostly to the stats screen, some sound and visual fixes and messages. There is one gameplay change, however. Most importantly, I added more configurability.

I have removed the achievements “Boom!”, “BOOM!” and “BOOM! BOOM! BOOM!”. The reason for this is because the bonuses were too powerful. A difference of just one kill can make a huge difference in score.

If you have made 99 kills, you have 100 points less than if you would have only one kill more, namely 100 kills. I don’t think that’s very fair.

I am asking Space Invasion players if you support this change. If not, and you have a good reason, I consider to add it back in.

Incomplete list of changes for version 1.2:

  • show actual scores in stats screen, and a simple score graph
  • show a couple of “awards” and more or less snarky comments in stats screen
  • for various accomplisments and events those are just for fun, they don’t affect score or game outcome
  • now heavily use script parameters for configuration, see top of source code for more infos. (0.9.21 only)
  • stop overwriting most game scheme’s parameters; allow player to fiddle around with that for fun (also see source code comment at top for more info)
  • disable weapon scheme
  • play “denied” sound when trying to use empty radar, ammo or shield
  • play “Hurry!” taunt when 5 seconds are left
  • play throw sound when throwing a barrel
  • play sonar sound for using radar (uses sidecar HWP which replaces sndPiano0)
  • play “Kamikaze!” taunt for receiving one of the kamikaze bonuses
  • show total team score in HUD (white number)
  • show message when time’s up
  • show message with round score at end of a round
  • disabled health graph, replaced with score per round
  • removed “selected weapon” message, we only have one weapon
  • removed unused bubbleSort function
  • play “Ooff” sound when hit by bazooka
  • fix explosion being drawn twice when colliding with circle
  • play explosion sound when barrel’s lifespan is over

Core developers: Don’t worry about the sound file, it is smaller than the script itself! Big Grin Also, it’s released under the WTFPL. I shall post the FLAC file soon. Blame me if I forgot it somehow, lol.

As I said, this script can also be now heavily configured. You can use the script parameters to set the number of rounds (in previous versions you used the mine timer), the starting amount of items you get and some of the bonuses (non-score) you get. See the source-code comment for more info about this.

More interesting, I have worked on the script now that it respects several of the other game scheme options. For example, you can now turn on fort mode or set low gravity, etc. However, some options will be ignored no matter what, for technical reasons. You can’t turn invulnerable mode, for example. See the source-code comment for more info about this.

You can use this updated script with 0.9.20 as well as 0.9.21 Beta. In 0.9.20 you have no script parameters, of course (defaults are used).

You can download my script here, as a Zip (!) archive:
http://holzgolz.heliohost.org/data/games/hedgewars/scripts/Space_Invasion_v1.2.zip

Extract it into your user data directory. Sadly I couldn’t create a HWP file because I was unable to find out how to nest HWP files. Whatever, just extract this and the installation is done. Smile

I have also written some game schemes to be used together with this script, here you find the code to be appended to schemes.ini:

29\name=Space Invasion: Hard
29\fortsmode=false
29\divteams=false
29\solidland=false
29\border=false
29\lowgrav=false
29\laser=false
29\invulnerability=false
29\resethealth=false
29\vampiric=false
29\karma=false
29\artillery=false
29\randomorder=true
29\king=false
29\placehog=false
29\sharedammo=false
29\disablegirders=true
29\disablelandobjects=false
29\aisurvival=false
29\infattack=false
29\resetweps=false
29\perhogammo=false
29\disablewind=false
29\morewind=false
29\tagteam=false
29\bottomborder=false
29\damagefactor=100
29\turntime=30
29\health=100
29\suddendeath=50
29\caseprobability=0
29\minestime=3
29\minesnum=0
29\minedudpct=0
29\explosives=0
29\healthprobability=0
29\healthcaseamount=25
29\waterrise=0
29\healthdecrease=0
29\ropepct=100
29\getawaytime=100
29\worldedge=0
29\scriptparam="rounds=3, barrels=5, shield=15, pings=1, barrelbonus=3, shieldbonus=20"
30\name=Space Invasion: Easy
30\fortsmode=false
30\divteams=false
30\solidland=false
30\border=false
30\lowgrav=false
30\laser=false
30\invulnerability=false
30\resethealth=false
30\vampiric=false
30\karma=false
30\artillery=false
30\randomorder=true
30\king=false
30\placehog=false
30\sharedammo=false
30\disablegirders=true
30\disablelandobjects=false
30\aisurvival=false
30\infattack=false
30\resetweps=false
30\perhogammo=false
30\disablewind=false
30\morewind=false
30\tagteam=false
30\bottomborder=false
30\damagefactor=100
30\turntime=60
30\health=100
30\suddendeath=50
30\caseprobability=0
30\minestime=3
30\minesnum=0
30\minedudpct=0
30\explosives=0
30\healthprobability=0
30\healthcaseamount=25
30\waterrise=0
30\healthdecrease=0
30\ropepct=100
30\getawaytime=100
30\worldedge=0
30\scriptparam="rounds=3, barrels=6, shield=45, pings=3, barrelbonus=4, shieldbonus=30, timebonus=6"
31\name=Space Invasion: Intermediate
31\fortsmode=false
31\divteams=false
31\solidland=false
31\border=false
31\lowgrav=false
31\laser=false
31\invulnerability=false
31\resethealth=false
31\vampiric=false
31\karma=false
31\artillery=false
31\randomorder=true
31\king=false
31\placehog=false
31\sharedammo=false
31\disablegirders=true
31\disablelandobjects=false
31\aisurvival=false
31\infattack=false
31\resetweps=false
31\perhogammo=false
31\disablewind=false
31\morewind=false
31\tagteam=false
31\bottomborder=false
31\damagefactor=100
31\turntime=45
31\health=100
31\suddendeath=50
31\caseprobability=0
31\minestime=3
31\minesnum=0
31\minedudpct=0
31\explosives=0
31\healthprobability=0
31\healthcaseamount=25
31\waterrise=0
31\healthdecrease=0
31\ropepct=100
31\getawaytime=100
31\worldedge=0
31\scriptparam="rounds=3, barrels=5, shield=30, pings=2, barrelbonus=3, shieldbonus=30, timebonus=4"

You probably have to manually change the initial numbers when inserting this, sorry, but there is simply no easier solution right now. Sad Smiley
Basically, the intermediate scheme has this:
- no girders
- random order
- all other on/off buttons OFF
- 100% damage
- 45s turn time
- no mines, sudden death, barrels, crate drops
- a couple of script parameters (just to make editing more convenient, you do NOT need to specify that or need 0.9.21, if you leave the field empty, the script will use defaults).

So you could basically click your intermediate scheme together based on the information above, if you are too lazy with punching numbers. Wink Smiley

“Space Invasion: Intermediate” is the recommended game scheme to begin with, and it is equivalent to v1.1. But I removed girders intentionally, they only get in the way!
But you may add them again if you want, simply by editing the game scheme or by creating a new one. Smile
The other two are more like examples right now. I also have convienently inserted all but one script parameters into the input field, so you can edit it quickly.

Hi, I am a Hedgewars developer. Smile

Wuzzy
Wuzzy's picture
User offline. Last seen 29 weeks 3 days ago. Offline
Joined: 2012-06-20
Posts: 1304

All the aforementioned Space Invasion updates have been included into Hedgewars (developer version) since a few months.
They will become available in the next release. Smile

Hi, I am a Hedgewars developer. Smile

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]