Knuckle Cracker

Creeper World 2 => Custom Map Discussion => Topic started by: J on December 12, 2011, 02:43:04 AM

Title: Advanced field/gravity guide
Post by: J on December 12, 2011, 02:43:04 AM
Before you start reading this guide, you should make sure understand allmost everything about fields and gravity from this (http://knucklecracker.com/forums/index.php?topic=7786.30) topic, if you're still not good enough at creating fields you should read this guide.

TODO

I might add how to create puzzle games once I created one, tell me if you want me to do that.
Tell me!

Important information you need to know before reading:

Field strength: (Please don't start studying this list, use this when you're using the editor to calculate creeper/field strenght needed)
moving pin field lvl1: 5 000
directional field lvl1: 15 000
diagonal directional lvl1: 10 000 (to both sides)
moving pin lvl2: 50 000
directional lvl2: 500 000
diagonal directional lvl2: ~350 000
moving pin lvl3: 500 000
directional lvl3: 5 000 000
diagonal directional lvl3: ~3 500 000
moving pin lvl4: 5 000 000
directional lvl4: Any amount
diagonal directional lvl4: Any amount
not moving pin field: Any amount

How to create field actions (<-- very important) All buttons are explained in the attachment in the first post of this (http://knucklecracker.com/forums/index.php?topic=9652.0) topic. (page 27-33)
If you can't see it, this (http://knucklecracker.com/forums/index.php?topic=7786.msg51568#msg51568) guide might help.
A directional field facing to the lower right pushes the creeper downwards and to the right (strength decreases but it pushes to 2 directions)
1 in-game second = 30 frames

In this topic you can find:

How hard is it to create fields?
Some basic field action (combinations)
Everything about gravity
How creeper will react when there are fields and gravity
How (moving) creeper will react when there are multiple fields
How to create dripping/teleporting creeper
How to create large static fields
When creeper becomes AC and vice versa
QYMWTA
Changes

Sometimes I'll use one of my maps (http://knucklecracker.com/creeperworld2/viewmaps.php?author=J&embedded=false&gameVer=) as example
(Allmost) everything I post here is made from my own experiences, if you can prove me wrong, please post it and I'll edit it in this post!




How hard is it to create fields?

Good fields are very hard to create, only a great story might be a little bit harder to create :P
I'll put them all on a scale from 1-10. 1 is the easiest, 10 the hardest. Tell me if this list need improvements!
If you want to make them larger it will be a bit harder.

Static pin field with creeper in it: 1
1 row of lvl4 directional fields stopping the creeper: 1
Basic field action:2
Randomly moving creeper: 2-3 (depends on how perfect you want it to be)
Large static fields: 3
Multiple fields working together: 3-7 (denpends on what you are creating)
Triggers: 5-9
Creeper effects: 10 (could be lower, depends on what you are creating)

If you are looking for a challenge try to create the effects on ATF2 (http://knucklecracker.com/creeperworld2/viewmaps.php?embedded=false&gameVer=&mapid=1251)




Some basic field action (combinations)

In this topic, I will type in for the change state action: on / off rotate fields action: rotate field (by .. degrees / left/right) move field action: move (towards: / in .. frames).

1 drip (pin field(s)): on, move in [distance] or [distance*2] frames, off, move towards start position
2 teleport (pin field(s)): on, move in 1 frame, off, move towards start position
3 randomly moving creeper (randomly placed directional fields): rotate field by 135 degrees with end delay 1-300 frames




Gravity

In the creeper tab in the editor you can enter a number to set the gravity. Divide this number through 500 and thats the number that will be showed in-game. Multiply this number with 5 and you'll get the amount of creeper needed to move upwards (with downwards gravity) (don't know exatly because when I put in 500 it can hold 5*500 (=2500), when there's 1000 gravity it can hold 1000*5 (=5000) and when I put in 3000 it can hold 8.3333*3000 (=25000). Mostly you have to multiply with 5).

To explain what happens in combination with fields I use an example: There is 6G gravity down (you have to type in 3000 and it can hold 25000 creeper). With a lvl1 directional field facing upwards the creeper should react normally. Without fields it should go down and with a lvl2 directional field facing upwards the creeper should go up. Maximum gravity is 20G, lvl2 directional field is stronger.




How to create dripping/teleporting creeper

Example map: The rain (http://knucklecracker.com/creeperworld2/viewmaps.php?embedded=false&gameVer=&mapid=44)

When is the creeper 'dripping'? If a pin field carries the creeper to a place and releases the creeper there. Moving must take at least 2 frames.
If it takes 1 frame, I call it 'teleporting'.
How to create? On, move, off (could also move into a solid block of ground), move (mostly back to the starting position in 1 frame and an end delay to delay the next drip).

It can't move creeper into ground (or shields) but it can take creeper out of it!

Drip mode (under initially off): When the field turns on, it could not carry any more creeper than the creeper in the subcell where it currently is. It could pick up creeper when there was no creeper in the subcell where it turned on!




How (moving) creeper will react when there are multiple fields

First, a moving pin field allways takes the creeper with it when it moves.
Second, directional fields overrule static pin fields
Third, a directional field can push creeper out of moving pin fields!!!!! (a lvl1 directional field can't do this when there's more then 6G gravity in the other direction)
When there are 2 directional fields of the same lvl facing to opposite directions the creeper reacts normally (no field). Doesn't hold creeper out of it!
When there are 2 directional fields facing to random directions you should experiment with it, if they have the same lvl the field lvl goes up sometimes.
When 2 moving pin fields meet each other the one that moves out of the subcell first takes the creeper. I don't know what happens if they move at the same time.




How to create large static fields fast

Example map: Day 21: A second base (http://knucklecracker.com/creeperworld2/viewmaps.php?embedded=false&gameVer=&mapid=182)

Top part of the map (pipes): Fill with ground, remove the ground where you want the creeper to move and add the fields.
Lower part of the map (giant tentacles): First mark the path (where you want the creeper to move) with static creeper, then add the fields around it. After that test if the creeper stays in the tentacles. Remove the creeper and you're done!
In short: Mark the path, add the fields, remove the marks you don't want in your map.

(Important) hints and tips:
1: Know your restrictions! There must be 2 empty subcells between 2 tentacles of creeper. (or you're not able to keep the creeper in the tentacles, only if you want the creeper to move)(field are not able to block the creeper from 2 opposite sides)
2: Know what you have to do! Creeper can't move diagonally. (make sure each spot is connected horizontally or vertically)
3: Create your fields step by step! Do not try to do everything at the same time. (You could try, but there's a high chance everything gets messed up)
4: When things are not doing the things you want them to do you should try taking a quick nap or try again next day, when you start doing many wrong things there's a high chance it's impossible to fix and you'll have to start over




When creeper becomes AC and vice versa

If there's more then 2147483648 (2^31) creeper in a single subcell the creeper (in that subcell) will become anti-creeper and vice versa.
How to create:
4 (or less if it's next to the ground) lvl4 directional fields facing to the same subcell (the ones diagonally facing to it aren't needed to create this). If you want the flipped creeper to flow out you should uncheck creeper or anti-creeper when creating the field.
When there is extremely much creeper on your map even the gravity could do this.




Triggers:

Only use these when you could easily add, clone and edit fields or it could take hours to create this part of your map because this is one of the hardest parts.

Ground trigger: Teleport the creeper from a 1 cell small room into the ground and the next frame in the game (or leave it where it is). The ground the creeper goes to must be dug out by the player or a nexus explosion before the creeper is taken with the field.
Why does this work? Fields couldn't take creeper into ground, but when it's removed, the field can teleport the creeper!

Anti-creeper trigger 1: Used in Transporter (http://knucklecracker.com/creeperworld2/viewmaps.php?embedded=false&gameVer=&mapid=3) (VirgilW, map ID: 3). Teleport the creeper from a specified place to a closed room filled with creeper. You could also allow the creeper to be transported but when there's too much creeper telepotated it could make the map 1: impossible 2: extremely hard 3: a long and boring slog

Creeper trigger: Teleport the creeper to a closed room in your map and put a block of decayable terrain in that room (mayby some fields to stick the creeper around it and some anti creeper). Teleport (anti-)creeper from another closed room (1 cell small) into the ground and the next frame into the game to activate a nexus, help the player or throw in a few ton creeper. Make sure you remove the creeper when the mission type is obliteration.

Anti-creeper trigger 2: Same as the creeper trigger, but this time you have to teleport the anti-creeper into a subcell with 2147480000 anti-creeper (surrounded by lvl4 directional 4 facing towards that subcell, holding only anti-creeper) with should flip over to creeper when there's more than 2147483648 anti-creeper in it and flows towards the decayable block. This gives you one problem: There are millions of creeper there. This could be solved by: 1: changing the mission type to acquisition 2: putting a nexus near it (may be triggered by this trigger) 3: moving it into a small room with an anti-creeper emitter 4: using that creeper to be teleported into the game (you don't need decayable terrain for this, but you can use it to make sure the map can't be won before the AC is converted)

Emitter trigger: Teleport 5000 creeper to a closed room on the map from a emitter everytime it emits creeper (doable with 1 lvl1 pin field). Create an AC emitter with density 5000 and the same start/interval times the creeper is teleported from. Once the creeper emitter is destroyed the AC will become available and that can be used to create the AC trigger 2. (thanks to Ebon Hearth)

I posted a map (http://knucklecracker.com/creeperworld2/viewmaps.php?embedded=false&gameVer=&mapid=989) with some emitter/ground/AC2 triggers. When the emitter is destroyed the AC will move into 2146M AC. That creeper is used to remove the decayable terrain and then it is moved to a subcell with some creeper to flip it again. That AC is teleported into the game and the AC from the emitter is also teleported into the game (first it couldn't because of the decayable terrain).




Questions you may want to ask:

Q: How should I make my fields if I want some (sub)cell(s) without gravity.
A: Horizontal or vertical: 3000 (6G) gravity, lvl1 directional field in the other direction. Diagonally: 2000 in 2 directions (5,65 G diagonally), lvl1 directional field facing in the other directions (diagonally).
Example: 6G down
132     1: lvl4 ->            From 3 the creeper will go down
142     2: lvl4 <-            From 4 the creeper could freely flow to 5 when 4>5
152     3/4/6: nothing     From 5 the creeper goes up if 5>4, same with 6
162     5: lvl1 up            From 6 the creeper will go down

Q: I want to learn how to create creeper effects but why can't I find anything about them in this topic?
A: There is no specific effect to explain, there are many different effects you can create and I'm not able to explain them all. I could only give one tip: Don't be scared to create many fields.

Q: I want to create a map with lots of creeper flying around everywhere. Why couldn't I find anything about that here?
A: Those maps it's pretty hard to give tips for because it differs in every situation, but I can give some hints:
Create your fields in such order that you can duplicate most fields.
Give you fields names! If you have many fields with the same name, give the first and last one in the list the name and put the rest between them, doing so you can create groups.
Think ahead before losing control!




Changes

(18-1-2013) Added link in Important information you need to know before reading
(14-11-2012) Added stuff to QYMWTA
(10/10/2012) Changed: How hard is it to create fields?
(13/3/2012) Changed: TODO, QYMWTA, Triggers, How hard is it to create fields?. Added: Changes
(28/3/2012) Changed: Triggers




If you want I add more information/tips, ask me!
If you can prove this information wrong, tell me and I'll change it!


Looks like everything is fine, still haven't got any mail about this guide :)
Title: Re: Advanced field/gravity guide
Post by: J on December 12, 2011, 02:43:53 AM
Is anyone interested in an advanced field/gravity guide?
Title: Re: Advanced field/gravity guide
Post by: Michionlion on December 12, 2011, 09:18:57 AM
YES.  I could really benefit from being able to understand fields more then just to make a little thing move.
Title: Re: Advanced field/gravity guide
Post by: J on December 12, 2011, 10:19:14 AM
I'm working on it. Please tell me if I did something wrong or if you want I add something you still don't know.
If a mod wants to sticky this I won't stop it.
Title: Re: Advanced field/gravity guide
Post by: lich98 on December 12, 2011, 03:30:37 PM
very nice, helpful too  ;D
Title: Re: Advanced field/gravity guide
Post by: Ebon Heart on December 12, 2011, 06:04:54 PM
I'll make a link to this in my guide. :D
Title: Re: Advanced field/gravity guide
Post by: SmileyCoder on December 13, 2011, 04:46:09 AM
Could you be a bit more specific about:
Quote1: Know your restrictions! There must be 2 empty subcells between the creeper.
Title: Re: Advanced field/gravity guide
Post by: J on December 13, 2011, 09:45:23 AM
Quote from: SmileyCoder on December 13, 2011, 04:46:09 AM
Could you be a bit more specific about:
Quote1: Know your restrictions! There must be 2 empty subcells between the creeper.
Example:
CFC           CFFC     Fields can't bock from creeper on 2 opposite sides
CFC   -->   CFFC
CFC           CFFC     C are the tentacles, F are the places where your fields are

I think I allmost completed my guide. If there are still questions about fields and gravity tell me!
Title: Re: Advanced field/gravity guide
Post by: Ebon Heart on December 14, 2011, 07:52:17 PM
This is now linked to in my guide, :D Great job, J!
Title: Re: Advanced field/gravity guide
Post by: J on January 20, 2012, 04:39:38 PM
Added TODO and 4 triggers
Tell me if I missed something
Title: Re: Advanced field/gravity guide
Post by: Ebon Heart on January 20, 2012, 05:07:59 PM
I'm going to come out with a tips and tricks guide soon, just for some cool stuff I've found as I've played with the editor.
Title: Re: Advanced field/gravity guide
Post by: Ebon Heart on January 22, 2012, 12:11:51 PM
One interesting trigger is an emitter trigger. You can use it to make something happen when a powerful emitter is destroyed.  Basically, make it so that each time an emitter bursts, a level 1 field carries a small amount of creeper to somewhere off the map (it just requires 2 cells boxed in somewhere) have an anti creeper emitter with timings the same as the original emitter, and 5000 density. Have fields around the anti creeper emitter so that it will attempt to fill a subcell with 2.47B anti creeper. Basically, every time the emitter goes off, it teleports 5000 creeper to that area and prevents the anti creeper emitter from filling that subcell. If the emitter is destroyed, the anti creeper will convert that subcell, and creeper only fields can teleport it wherever you want. You can also use decayable terrain to make this more foolproof... but more complicated. (sometimes with this type of trigger, you might win the map beforee the anti creeper is converted)
Title: Re: Advanced field/gravity guide
Post by: J on January 22, 2012, 12:33:57 PM
Thanks, I'll add it ASAP
EDIT: Done
Title: Re: Advanced field/gravity guide
Post by: Shubhamkar on February 21, 2013, 12:20:37 AM
How to make fields similar to those used in Day 16: Purpose? The one to which a emitter is attached to directly. I tried placing pin fields around the emitter with one directional field extended . But the creeper fell out of the field. (I had used 7 pin fields.)

Thank You
Title: Re: Advanced field/gravity guide
Post by: J on February 21, 2013, 01:55:31 AM
I don't exactly what you mean but if you want to take a look at day 16 in the editor, here's the file.
The file says day 17 but it is day 16.
Title: Re: Advanced field/gravity guide
Post by: lurkily on February 21, 2013, 07:26:53 AM
Quote from: Shubhamkar on February 21, 2013, 12:20:37 AM
How to make fields similar to those used in Day 16: Purpose? The one to which a emitter is attached to directly. I tried placing pin fields around the emitter with one directional field extended . But the creeper fell out of the field. (I had used 7 pin fields.)

Thank You

If I recall, (been a while since I tinkered,) it should work just like you say.  Pin fields containing creeper around the emitter, maximum strength.  Then a 'pipe' of fields consisting of a directional field to make creeper flow through (optional) and a field on each side, to contain creeper inside the 'pipe'. (not optional)  Can you show us your field configuration, either in screenshot, or otherwise?

Am I misunderstanding your needs?


↘↓↓↓↓↓↓
→E→ → →
↗↑↑↑↑↑↑
E: Emitter
Arrows: fields

EDIT: Pin fields directing creeper in the 'pipe' are staggered in this example because the small size of a code-box font and how closely they were packed confused things.  No need for that in practice.