Mission updates (more stats, more stuff, more points)

10 replies [Last post]
Wuzzy
Wuzzy's picture
User offline. Last seen 3 weeks 5 days ago. Offline
Joined: 2012-06-20
Posts: 1301

Hi! I have modified 4 missions: 3 training missions and the RC plane challenge. In short, I have made a lot of changes to the final stats screen to make it much more interesting. The mission dialog is always so quickly gone.

In cluster bomb training and sniper rifle training, you get a score at the end of the mission, based on the remaining time, number of destroyed targets and your accuracy. The score, shots, hits and maybe the accuracy is shown at the end in the stats screen so you have enough time to read it.
I also removed the health graph because it is needless there.

Here is a screenshot after a successful cluster bomb training round:

(sorry, languages are mixed up here, I was to lazy to change language. “Punkte” means “points” and “Platzierung” means “ranking”.)
It looks similar for the other missions.

I also modified the bazooka training in a similar way but you get no score because the targets spawn randomly.

At last, I have made a lot of changes to the RC Plane challenge. Now the stats screen shows the number of used planes and even how many missiles you have thrown. And the longest “streak” (that is, the biggest number of crates destroyed or collected with 1 plane).
And most importantly, you get a rank solely based on how many planes you used. The best rank is “Top-class elite pilot”.

I also added a few taunts for this mission to add some flavor to it. So if you mess up exceptionally stupidly, a taunt plays. Big Grin

Here are the souce code of said updated scripts:

Cluster bomb training: http://lpaste.net/raw/115159 (obsolete, see http://www.hedgewars.org/node/5958 [target practice framework])
Bazooka training: http://lpaste.net/raw/115915
Sniper rifle training: http://lpaste.net/raw/115043
RC Plane Challenge: http://lpaste.net/raw/115113

To try out the new missions, simply copy the source code into a new .lua file under Data/Missions/Training, or even overwrite the existing missions if you are really brave.

I wish to have these updates of these missions included into Hedgewars.

Hi, I am a Hedgewars developer. Smile

mikade
mikade's picture
User offline. Last seen 15 weeks 2 days ago. Offline
Joined: 2010-10-22
Posts: 355

Sounds good! I was meaning to eventually work through all the trainings and update the stats section now that it has been exposed, but it looks like you're gonna beat me to it.

I haven't had a chance to playtest your changes yet, but the screenshot looks promising. Smile

I noticed you removed the "Prestigious Pilot" achievement though. Sad Smiley
Please keep that in, and/or ideally modify it to appear on the stats screen. It is part of a (sekret?) set of special achievements running through the mission series that only the most skillful/dedicated players will manage to complete.

Anyway, thanks for the contribution. Keep it up.

mikade
Hedgewars Developer

Hoot
User offline. Last seen 4 years 14 weeks ago. Offline
Joined: 2013-12-14
Posts: 51

Very good idea! Thanks for the contribution!

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

OK, mikade, I added a short message it to the stats screen. I updated the link in the first post.

The stats screen now says that you gained the achivement.

I never understood why it is called “Achievement unlocked!”, because, you didn’t unlock anything. “unlocking” in video games usually means “to make something available to use”, why the meaning of the word “unlock” is altered in such a strange way for achievements is beyond comprehenshion to me.

I didn’t add the caption back, because it doesn’t work for some reason (maybe because there are already to many captions present at this point).

Anyways, Hedgewars does not really have an achievement system, because they are nowhere stored.

Hi, I am a Hedgewars developer. Smile

nemo
nemo's picture
User offline. Last seen 3 weeks 3 days ago. Offline
Joined: 2009-01-28
Posts: 1861

Nowhere to be stored? Hedgewars has a variable system that lua can use, team linked.
You could, if you wish, make a script that had a memory, just like the campaigns.

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

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

Yes. Right.
But there still needs to be a place to *view* those achievements you got. And idieally this is in the frontend. But—oh snap!—the frontend must be modified for this. :P
Lua scripts are not the answer to everything.

Whatever, I am not really willing to make any big changes for achievements, those are simply not important enough for me. Especially since Hedgewars does not provide any tools for that.

Hi, I am a Hedgewars developer. Smile

nemo
nemo's picture
User offline. Last seen 3 weeks 3 days ago. Offline
Joined: 2009-01-28
Posts: 1861

Heh, I assure you, I'm the last to disagree that lua is not the answer for everything, but in the context of a particular script or scripts, achievements that alter something within that script seem pretty darn reasonable, if someone wants to implement it.

Adding some visual effect or somesuch based on some skillful play.

If you want some sort of global list of achievements, then yeah, the frontend would have to get involved (or a new in-game achievement display area could be added, whatever, in which case it would be the engine).

I was just commenting on the lack of storage since I thought you didn't know about it.

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

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

OK, I made a quick update for the cluster bomb training. I noticed that the hedgehog had no voice. That was because of a faulty AddTeam specification. Also the hedgehog should have a hat, but due to a typo the hedgehog didn’t have one. I have fixed both issues.

I updated the link in the initial post

Hi, I am a Hedgewars developer. Smile

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

Okay, I have created a framework for target practice missions and some missions for it. This makes the cluster bomb mission posted in this thead obsolete. Here’s the thread:
http://www.hedgewars.org/node/5958

In fact, I have used my update of the cluster bomb mission in order to create my framework. Smile

Hi, I am a Hedgewars developer. Smile

mikade
mikade's picture
User offline. Last seen 15 weeks 2 days ago. Offline
Joined: 2010-10-22
Posts: 355

I tried your Bazooka training. Seems to work pretty nicely, but I noticed that if I lose by dying (drowning / damage) my stats aren't sent. I assume that is probably the case on most of 'em, so can you fix it up, and then reupload?

mikade
Hedgewars Developer

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

Thanks, mikade, I have fixed Bazooka training.
Now stats are also sent on death, damage and drowning and running out of time.

I also want to point to my target practice missions: http://www.hedgewars.org/node/5958
I included two bazooka missions so far and both missions include targets at fixed positions and you will get a score.

In the bazooka traning presented here, 5 targets spawn at random positions (sometimes very unlucky ones!) and you get no score (intentionally!).

About the other missions: Cluster Bomb Training is now obsolete in favor of a target practice mission (see thread). RC Plane Training and Sniper Training are okay, I tested these. You cannot die or hurt yourself in these missions.

Hi, I am a Hedgewars developer. Smile

User login

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