Hedgewars Mission Editor development

28 replies [Last post]
francot514
User offline. Last seen 1 year 23 weeks ago. Offline
Joined: 2015-03-20
Posts: 163

Hi you im back, and i want to start development of this tool to allow users create easy made mission script, for this i have some ideas but need a lot of work, hope you can help me with suggestions and feedback.

See some images preview:

Dziq
Dziq's picture
User offline. Last seen 3 years 25 weeks ago. Offline
Joined: 2015-06-21
Posts: 4

hmm interesting Smile Hope you don't stop working on that tool in near future Smile
Creating own funny missions and allow people to play these? YES! I can't wait for more info Smile
good luck

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

Sounds cool. I wish you luck with this project. Allowing users to generate their own simple missions is a nice goal, I think.

As it stands, Hedgewars scripts can currently be played as:
1) Single Player missions/challenges/trainings in the "Training" Section
2) Single Player Campaign levels in the "Campaign Mode"
3) Single/Multiplayer variant gameplay modes via the "Styles" box
4) Single/Multiplayer missions on a specific map via the "Mission Map" box

Is your editor aiming to facilitate the production of one of these in particular, or all of them in general?

I've been working a bit on a Hedgewars gameplay mode / script that you might be interested in checking out. It acts as an editor of sorts by reading in map/teams/scheme/weps etc. from frontend and then allowing you to place and manipulate additional stuff in real time during the game itself. When you're happy with your level, you output that data to game0.log as data / a template script. I don't know exactly what your plans are, but I imagine your editor might provide a more user-friendly interface of interpreting and manipulating some of the generated data / lua scripts in general.

There's been some nice stuff with potential for improved editing in the current dev version of Hedgewars lately. unC0Rr, for example, provided a hwmap <-> text converter which can be used to embed special points into hand-drawn maps. Other scripts / your editor etc. could probably make use of this.

There are probably some ideas related to editors scattered around the forums, but feel free to hit me up if you'd like more specific feature requests or want someone to help test things.

Good luck.

mikade
Hedgewars Developer

francot514
User offline. Last seen 1 year 23 weeks ago. Offline
Joined: 2015-03-20
Posts: 163

Quote:
Creating own funny missions and allow people to play these? YES! I can't wait for more info Smile
good luck

Thanks, check for news about it.

Quote:
As it stands, Hedgewars scripts can currently be played as:
1) Single Player missions/challenges/trainings in the "Training" Section
2) Single Player Campaign levels in the "Campaign Mode"
3) Single/Multiplayer variant gameplay modes via the "Styles" box
4) Single/Multiplayer missions on a specific map via the "Mission Map" box

Is your editor aiming to facilitate the production of one of these in particular, or all of them in general?

I havent noticed about that, maybe ill start doing some easy scripts for "Training" missions and "Mission map", the ones i know and have checked...

Quote:
There are probably some ideas related to editors scattered around the forums, but feel free to hit me up if you'd like more specific feature requests or want someone to help test things.

Yes, ill need some ideas for doing basic config options for mission events, and some testing of course...

francot514
User offline. Last seen 1 year 23 weeks ago. Offline
Joined: 2015-03-20
Posts: 163

This is the preview of options setup, can you confirm me please that all is correct and im not missing something, also do you like layout and design??

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

Layout and design look good so far.

You probably need another tab for controlling which hogs have what weapons, or at the very least, controlling starting weapons for everyone. You're also missing quite a few game flags and have a couple of spelling errors (invulnerable, frequency), but other than that it seems okay. What does the "Use at start" box change?

I'm interested to see what you have planned for the "Events" tab, and how it will interface with the script itself.

mikade
Hedgewars Developer

h3oCharles
h3oCharles's picture
User offline. Last seen 8 hours 9 min ago. Offline
Joined: 2012-10-19
Posts: 129

francot514 allegedly wrote:

This is the preview of options setup, can you confirm me please that all is correct and im not missing something, also do you like layout and design??


Missing Health Decrease

EDIT1: Hey, if you want to, i can help you making graphics for you. If you want to

EDIT2: I have a suggestion. On map, user can place hogs where they want. User just has to point which hog and where, and the program will get X and Y and which hog. Also, when making teams, you should label hogs, something like this

local test_11 = AddHog(test_11_hat, 0, 100, test_11_hat)

and that test_11 will be "Hedgehog Label"

oh hi

francot514
User offline. Last seen 1 year 23 weeks ago. Offline
Joined: 2015-03-20
Posts: 163

Quote:
You probably need another tab for controlling which hogs have what weapons, or at the very least, controlling starting weapons for everyone. You're also missing quite a few game flags and have a couple of spelling errors (invulnerable, frequency), but other than that it seems okay. What does the "Use at start" box change?

Yes all that is done in teams, each team configuration like hogs and weapons, which missing flags?? also about spelling that can be easy solved, "Use at start" means it configure all this stuff at onGameInit()

Quote:
Hey, if you want to, i can help you making graphics for you. If you want to

What kind of graphics??

h3oCharles
h3oCharles's picture
User offline. Last seen 8 hours 9 min ago. Offline
Joined: 2012-10-19
Posts: 129

francot514 allegedly wrote:

KarBoy2314PL allegedly wrote:
Hey, if you want to, i can help you making graphics for you. If you want to

What kind of graphics??

Icons for tabs for example.

oh hi

sphrix
sphrix's picture
User offline. Last seen 1 week 3 hours ago. Offline
Joined: 2011-04-07
Posts: 207

wow !!
upvote
i think this tool will help a ton of people to make new missions !
i dont know much about coding etc, but like mikade said, an important point will be the event tab Wink Smiley

congratulation and keep doing good work, we like this Smile

the beachs hogs surfin hedgewars

francot514
User offline. Last seen 1 year 23 weeks ago. Offline
Joined: 2015-03-20
Posts: 163

sphrix allegedly wrote:
i dont know much about coding etc, but like mikade said, an important point will be the event tab

The events tab will handle all the events for the mission, that does ocurr after start, ill use onNewTurn(), and maybe some other event handlers..

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

You probably don't need a "use at start" checkbox because there isn't really another time that stuff would be set.

For the kind of basic missions I think you're aiming to simplify onNewTurn() and onGearDelete() are probably going to be the most important handlers. onGearDelete() in particular will be important as presumably that is where you would check for objective completion (specific enemy hog killed, crate collected / blown up, etc).

Of course, for more complicated missions, a variety of other event handlers could come in handy.

mikade
Hedgewars Developer

francot514
User offline. Last seen 1 year 23 weeks ago. Offline
Joined: 2015-03-20
Posts: 163

Quote:
You probably don't need a "use at start" checkbox because there isn't really another time that stuff would be set.

Ok, no problem, deleted. I have updated the graphics layout, with Hedgewars iconset, thanks to @KarBoy2314PL. Next to do is team tab, that should contain all teams confings and weapons setup..

PD: Want to check my test mission script progress, go here:
http://www.hedgewars.org/node/6216

Quote:

h3oCharles
h3oCharles's picture
User offline. Last seen 8 hours 9 min ago. Offline
Joined: 2012-10-19
Posts: 129

francot514 allegedly wrote:

Quote:
You probably don't need a "use at start" checkbox because there isn't really another time that stuff would be set.

Ok, no problem, deleted. I have updated the graphics layout, with Hedgewars iconset, thanks to @KarBoy2314PL. Next to do is team tab, that should contain all teams confings and weapons setup..

PD: Want to check my test mission script progress, go here:
http://www.hedgewars.org/node/6216

Quote:

No problemo my friend!

EDIT1: Once im going to be done with Vatten's request (whoopsie, spoiler alert), i will be giving you more icons.

EDIT2: You spelled 'Case frequency' incorrectly.

EDIT3: It would be good to have on toggle ability to change Round Delay, or rather that should be called Turn Delay, because it can mess up some weapons. If set to 0, if someone will place a mine, it will detonate in middle of other team's turn.

EDIT4: You are missing Health Decrease.

EDIT5: I have 2 icons and i think im done for now.

oh hi

francot514
User offline. Last seen 1 year 23 weeks ago. Offline
Joined: 2015-03-20
Posts: 163

Quote:
EDIT2: You spelled 'Case frequency' incorrectly.

EDIT3: It would be good to have on toggle ability to change Round Delay, or rather that should be called Turn Delay, because it can mess up some weapons. If set to 0, if someone will place a mine, it will detonate in middle of other team's turn.

EDIT4: You are missing Health Decrease.

Maybe icons from weapons are needed, thanks for your contribution, about round delay i will not allow to be 0 maybe, becuase there is no way to change turn delay different from that using api gameflag "Delay".

Now i will do the best for layout as possible and start doing the hard part, the coding that enables create mission and save it as lua format..

Star and Moon
Star and Moon's picture
User offline. Last seen 4 days 5 hours ago. Offline
Joined: 2010-04-03
Posts: 718

This looks very nice. I'm wondering, will this allow you to create basic missions without the use of LUA scripting, or does it still require that kind of stuff?

francot514
User offline. Last seen 1 year 23 weeks ago. Offline
Joined: 2015-03-20
Posts: 163

Quote:
This looks very nice. I'm wondering, will this allow you to create basic missions without the use of LUA scripting, or does it still require that kind of stuff?

Yes it will allow to do that, thats the main objective of the editor..

h3oCharles
h3oCharles's picture
User offline. Last seen 8 hours 9 min ago. Offline
Joined: 2012-10-19
Posts: 129

francot514 allegedly wrote:

Maybe icons from weapons are needed, thanks for your contribution, [...]

Weapon Icons? Go to where you've installed Hedgewars and then...
Data/Graphics/AmmoMenu/Ammos.png

each 32x32 pixels square is an icon for each unique weapon.

oh hi

francot514
User offline. Last seen 1 year 23 weeks ago. Offline
Joined: 2015-03-20
Posts: 163

Quote:
each 32x32 pixels square is an icon for each unique weapon.

Yes, maybe if you can help me get each one individually, or there is way to split image into 32x32

Edit: Here is the teams tab config preview:

h3oCharles
h3oCharles's picture
User offline. Last seen 8 hours 9 min ago. Offline
Joined: 2012-10-19
Posts: 129

Sometimes the answer just awaits on that one little Google Search.

I used an online program called ImageSplitter and i was able to split weapons icons.

Ive already splitted this, so here we go: LINK

EDIT1: Oh, and also, if you want to have images that last a long time, I would recommend Imgur

EDIT2: You've messed up the fort and grave. First of all, no .PNG extensions in the code and in fort no L/R in code as well. Preview of the fort is always the L one.

EDIT3: It would be good to allow the user to set how much teams, their color and how much hogs per team.

oh hi

francot514
User offline. Last seen 1 year 23 weeks ago. Offline
Joined: 2015-03-20
Posts: 163

As always thanks for your help for icons, you deserve a line in the program credits.

Quote:
EDIT2: You've messed up the fort and grave. First of all, no .PNG extensions in the code and in fort no L/R in code as well. Preview of the fort is always the L one.

No problem, i cant remove the extension, and check only for one side image for the forts.

Quote:

EDIT3: It would be good to allow the user to set how much teams, their color and how much hogs per team.

Yes, but that requiere extra coding, im doing is as basic possible for start codding the sutff, will extend features when have something really usable...

francot514
User offline. Last seen 1 year 23 weeks ago. Offline
Joined: 2015-03-20
Posts: 163

Sorry, for this delay, im back with development, but now i have problems trying to create Events for mission, what should i do
-Create only limited number of predefined events
-Allow user script their own events using a event editor gui??

francot514
User offline. Last seen 1 year 23 weeks ago. Offline
Joined: 2015-03-20
Posts: 163

I will need some time to get progress in editor.

francot514
User offline. Last seen 1 year 23 weeks ago. Offline
Joined: 2015-03-20
Posts: 163

News: Im working on this on slow progress way, check this image:

Mapview preview

francot514
User offline. Last seen 1 year 23 weeks ago. Offline
Joined: 2015-03-20
Posts: 163

Im having problems to complete the editor, need some assistance.

francot514
User offline. Last seen 1 year 23 weeks ago. Offline
Joined: 2015-03-20
Posts: 163

New version that includes add weapons for each team ( 2 team avaliable).

Still if you use linux, can use with Mono or Wine. Give it a try.

francot514
User offline. Last seen 1 year 23 weeks ago. Offline
Joined: 2015-03-20
Posts: 163

Created a new compiled version, that should work for latest Windows, please download, try and comment results.

https://www.dropbox.com/s/xwmwih6bo6p2er8/HedgewarsEditor.rar?dl=1

francot514
User offline. Last seen 1 year 23 weeks ago. Offline
Joined: 2015-03-20
Posts: 163

For the newcomers and old ones, still here can help me to complete this
Check code here: https://github.com/francot514/Hedgewars-Editor

UltiMaxKom
UltiMaxKom's picture
User offline. Last seen 4 years 12 weeks ago. Offline
Joined: 2016-06-26
Posts: 381

francot514 allegedly wrote:

For the newcomers and old ones, still here can help me to complete this
Check code here: https://github.com/francot514/Hedgewars-Editor

Hedgewars still here,,,

Old or new,,, go through every silence time,,, finish it, i interested see it,,, Hope no spirit breaks upon Hedgewars Big Grin

╟───NW──────┼──────N╢

╓──────────────────╖ ╓──────────────────╖
⠀HP: ██████████ 1E9/1E91E9/1E9 ██████████ :MP
╙──────────────────╜ ╙──────────────────╜

User login

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