Notices


Reply
Thread Tools
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#91
I've been through this whole topic and I know about editing waves. But, just making more waves of critters and more HP on them is quite boring, very soon.

Editing map would five much more possibilities, and if TheBurek "promised" them, I see nothing bad with asking him, if he could do that (asking, not demanding).

Source code availability would be even better, mostly for game itself (no reason why he couldn't dual-license it, so he still could use community enchancements in his financial plans). Of course, if he think that he need to keep game closed source for some "financial" plans - I'm OK with it (although, very doubtful about merit). Still, my example of company releasing source code, of such epic thing as Homeworld, was there for a purpose.

Anyway it doesn't hurt to ask And yes, I see it as "hobby" game f lately, many hobby games are better than 3/4 of mainstream (see Richard&Alice, for example).

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 
Posts: 108 | Thanked: 329 times | Joined on Apr 2010 @ Bosnia and Herzegovina
#92
Sorry for neglecting this, but stuff has been happening IRL. Among other things, I'm hard at work trying to make this whole game development thing a legit job for myself. As for the source-code release, I'm not even going to "promise" that. Not yet sure about the financial side, but I'm sure as hell the code is messy and almost 100% undocumented. Custom homebrew engine and custom everything. The tools I could've tidied up a bit, but I just never got around to do it. Sorry about that. I won't even pretend that the lack of motivation doesn't come from the fact that I have nothing to gain by doing this (as opposed to some other stuff that's eating away my time and brainpower these days). Though I didn't promise it, I'll still feel bad if I just wander off, so I'm going to look around my hard drive right now, and if I find any useful builds of the tools I used, I'll post them here, along with at least some instructions. Stay tuned.

EDIT: Ok, here's what I can offer for now:
  • SMLED 2.5 (tilemap editor, written using .NET, works on Windows, tested previous versions on Mono/Linux years ago, not sure if it works anymore)
  • GFlow (flow map editor, Java JAR, should work anywhere)

PLEASE REMEMBER these were never meant to be released or used by anyone else but me, so I'm putting them here without absolutely any guarantees. You should also adjust your expectations regarding user-friendliness and stability. Smled is more-or-less ok, but GFlow is a horrible one-off tool.

So, now I'll try to piece together some sort of a guide and make it my next post here.

Last edited by TheBurek; 2013-04-07 at 21:15.
 

The Following 5 Users Say Thank You to TheBurek For This Useful Post:
Posts: 108 | Thanked: 329 times | Joined on Apr 2010 @ Bosnia and Herzegovina
#93
Allrighty then... Making a Defense Gear level involves three steps: making the tile-map (terrain), making the flow-map (substitute for actual pathfinding) and writing meta info and waves.

STEP 1 - Using Smled

Open it up (duuh). This isn't really a "Defense Gear editor", I started it years ago to be my universal go-to 2D map editor, so it has many (for a project of this type) features for editing maps, even creating/editing tilesets, brushes, entities, etc. But we won't be using most of these. It's set up now to automaticaly load the Defense Gear tileset. Don't try editing it or adding new tiles, this won't transfer to the game.

Before you begin, resize the map to 64x64 (upper edge, toolbar). By default, roll mouse wheel to select tile (right edge of the window), left click to "paint" it, right click to erase (blue means empty, but don't leave anything empty for DG maps), and middle button drag to scroll around. You can even swap middle and right in "Configuration...". To speed up the process, you can use flood fill (paint bucket on the left), and "Managed brush". When switched to managed brush, select "Kanjon2" from drop-down list, and try painting with it. It probably won't always work as you expect it to, but can be very useful to fill in the right edge tiles for you (when such exist). You can even select, copy and paste with Selection tool. Play around, try to figure it out. Anyways, whatever you do, don't use entities and don't modify the tileset. Also, I think 16 (or 17?) tiles from each edge are blocked for construction, so keep that in mind, use the status bar for current XY coordinates. And, half a tile next to obstacle tiles are also impassable (this's where the "cliff" is), and try not to push multiple creeps throgh a 1-tile wide canyons, they might easily get stuck.

Smled has its own format for saving maps, so you'll want to use that one if you want to keep the map for later editing. That's the one when you use regular Load/Save. For in-game use, go to Export, and select the last option, Map (Raw...). This will save a .map file, which we'll use next in GFlow and later in the game itself. Please note that this is not reversible - Smled can't load/import .map files.


STEP 2 - Using GFlow

(if you downloaded it before this post, download it again, important bugfix)

Defense Gear has no pathfinding. *record scratch* All creeps are actually acting like particles in a vector force field, something like in fluid dynamics. With the twist that you have to "draw" the fluid flow yourself, because I couldn't be bothered to program a real fluid solver to do this thing automagically. This one is very ugly and flickery and unfinished, but here's how to use it - place your .map file in the same folder where GFlow.jar is, run GFlow, press K, and type in your map name (without ".map" extension). Now, you should see your map in black and blue. Now, you'll have to "comb" the vectors by dragging your mouse in such a way that in all walkable tiles, vectors will point in the directions creeps should go next from there. You can adjust "brush size" with mouse wheels. Be very careful about the edges, since creeps have no intelligence and no pathfinding ability - this map is all they have and they will blindly follow it. Also, make sure it goes all the way off the map, as if there were more space. This vector field needs to push creeps from their spawn point to the edge of the map and push them off it. When you've got something, press N to normalize vectors (might not notice the difference, but it's important), and then S to save it. Two new files should appear, the .bin one is GFlow's save (can be loaded with L), and .vfl is for the game to read.


STEP 3 - Metafiles and waves

The best approach here would be to open up some existing files and see for yourself what's in there, it's simple textual stuff. A level needs its main INI file (like defense2.ini). In there you'll see "map-file" which have the name of your .map file that you've exported from Smled. "vector-file" is your vector field file (.vfl) from GFlow. startX and startY are the coordinates to point the camera at when you start the level. Please note that these are in game units, where a tile is 2x2 units (not the smartest decision, had its reasons in the begining and then it was too late to change). So, the center of tile (X, Y) would be (X*2+1, Y*2+1). "wave-file" is the template for wave files, "%d" part will be replaced with a number, so "defense2-w%d.dat" yields "defense2-w0.dat", "defense2-w1.dat", "defense2-w2.dat", etc. And, total count of such files for current level, under "wave-count". Next up, you have spawn points. I don't remember what's the maximum, but try to keep it under 10. These are also in game units. Don't ever put them all the way on the edge (0 coordinate, or 130). Signs are not in game unis, but in tile coordinates (as read from Smled). Ang(les) are in degrees. Zero points right, and positive direction is CCW, if I remember correctly. Wave files are very simple, they're just a sequence of (creep type, spawn point, pause), each in a new line. See creep-data.ini for creep types, spawn point numbers are the ones from map .INI, and pause is in frames (60 frames = 1 second).

For the time being, there is no way to "add" maps to the game. You'll have to back up and replace some of the original maps. I'd like to extend this, so game can detect new maps and put them in the selection menu, but I can't promise it.

Also, I know this is more of a random ramble than a guide, but that's all I can provide for now. If there are any questions or problems, don't hesitate to post.
 

The Following 11 Users Say Thank You to TheBurek For This Useful Post:
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#94
Now that is something - Thanks a lot for your time spend to write those guides/tutorials, and good luck with making this game writing a thing for living - you're certainly talented at it, so keeping my thumbs.

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 

The Following 2 Users Say Thank You to Estel For This Useful Post:
nokiabot's Avatar
Posts: 1,974 | Thanked: 1,834 times | Joined on Mar 2013 @ india
#95
what are your next plans thebureak what about a mindless racing game\train\bullock cart\chair used by handicap\etc not the usual stuff we have seen with solid textures sounds or probably 3d with straight way with exess speed.
 
Posts: 108 | Thanked: 329 times | Joined on Apr 2010 @ Bosnia and Herzegovina
#96
@Estel, thank you!

@nokiabot, believe it or not - I did seriously consider making such a "kart racer". For the time being, I'm finishing up my new version of Reverstris for commercial release. If that goes well, I might even have a budget for my next game I doubt the next one will be such a racer, but I'd love to do a game like that at some point. Maemo releases might be problematic. I sure won't be able to persuade publishers to come to this market (does Ovi store even work anymore?). As for myself, I wouldn't mind releasing them for free for this tiny community (compared to Android market-share). I can't promise anything now, but I'll try to think of something.

So, did anyone manage to make anything with those tools? I'd love to see it. Also, there is one abandoned game prototype I worked on about a year ago, I should have Maemo build somewhere... I'll post that if I find it, gratis
 

The Following 6 Users Say Thank You to TheBurek For This Useful Post:
Posts: 304 | Thanked: 235 times | Joined on May 2010 @ Manila
#97
any plans for a harmattan version?
 
Posts: 117 | Thanked: 59 times | Joined on Nov 2012
#98
yes please, n9 version
 
nokiabot's Avatar
Posts: 1,974 | Thanked: 1,834 times | Joined on Mar 2013 @ india
#99
Yeah bureak post that game n think about that just remember it should be something fresh
Thanx for your co-operation
 
Posts: 108 | Thanked: 329 times | Joined on Apr 2010 @ Bosnia and Herzegovina
#100
@kent_autistic, @Mric, sorry, can't say there are any plans. I'm not familiar with the platform, nor do I have any tools installed here. If I knew how to build it for N9, I'd gladly do it, but I don't have the time for investigation and experimentation, sorry.

Ok, I found a build of my "Blaster" project for Maemo 5, get it here. Unpack in /home/user, maybe adjust permissions, and run. Libs are the same (afaik) as for Defense Gear/Red Roll/Reverstris, so if those work, this should too. I won't write any description, don't want to spoil the surprise Of course, it's just a very early prototype, never meant for release, and I'm not responsible for any kind of damage it may cause, use at your own risk. And maybe have some (very short) fun.
 

The Following 5 Users Say Thank You to TheBurek For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 18:13.