Hey, we have forums!

Author Topic: New to modding, working on warping between levels  (Read 16504 times)

0 Members and 1 Guest are viewing this topic.

Offline adam_0

  • Mini Bit
  • **
  • Posts: 2
    • View Profile
New to modding, working on warping between levels
« on: February 02, 2009, 04:35:52 am »
Hello,

I LOVED playing Aquaria, and although I'm busy with a million other things, I would like to know how to mod for Aquaria. I've learned many of the basics, but one thing that has evaded me is this: how do you warp from one level to another? I understand that it has something to do with the command:
Quote
warp levelname <?>

I don't know if I'm interpreting this correctly or if I'm totally off, but I think it's a wee bit important to know how to use multiple levels.

Also, for any of you wondering: I am the adam_0 from the Ambrosia SW forums - I thought I'd come here to ask my questions and just say 'hi'.

adam_0

Offline Alphasoldier

  • Dream Bit
  • **********
  • Posts: 1810
  • Zero Suit!
    • View Profile
Re: New to modding, working on warping between levels
« Reply #1 on: February 02, 2009, 12:13:47 pm »
I'm actually not certain about that myself. But after my last confrontation with warp I think that the <?> needs to be N, O, S or W
Which means, North East South or West. Which is the position you'll warp in.
Wrong, check post below

But when saying this, I also recall that there was a better option, I just don't know what it was. >_<
« Last Edit: February 02, 2009, 06:54:54 pm by Alphasoldier »
God sees and knows everything, but at least he won't gossip about it.

Offline Particlese

  • Bit Bit
  • ****
  • Posts: 85
    • View Profile
Re: New to modding, working on warping between levels
« Reply #2 on: February 02, 2009, 04:38:07 pm »
Here's what's in the wiki:

warp <mapName> <destination>

Warps Naija to another warp node or the naijastart node of any map. The destination can be either "u", "d", "l", or "r", standing for up, down, left, and right, respectively. Between any two maps (even the same map), warp nodes with opposite directions are paired, provided their mapName parameters point to eachother. Furthermore, whether Naija appears above, below, to the left, or to the right of the target node's rectangle is determined by the destination parameter of the node she entered. If the destination is invalid or absent, Naija will appear at the naijastart node in the specified map. If there are multiple valid targets, the one closest to Naija appears to be chosen.

As an example, in map1, there are three nodes: "warp map2 u" (1), "warp map1 l" (2), and "warp map1 r" (3). In map2, there is one node: "warp map1 d" (4). If Naija enters node (1) from any angle, she will appear at the top of node (4)'s rectangle. If she enters node (4) from any angle, she will appear at the bottom of node (1)'s rectangle. Similarly, node (2) will lead her to the left of node (3), and node (3) will lead her to the right of node (2).

N, S, O (or E), and W don't seem to do anything for me, though.  If there's anything confusing there, let me know, and I'll try to reword it.

Offline adam_0

  • Mini Bit
  • **
  • Posts: 2
    • View Profile
Re: New to modding, working on warping between levels
« Reply #3 on: February 02, 2009, 05:42:41 pm »
After reading it a bunch, I understood it as this:

You have 1 warp node for each side, with the params for one warp containing the other map's name and the side of the map that the current node is on.

This works for me. Thanks for the help!

adam_0

Offline Alphasoldier

  • Dream Bit
  • **********
  • Posts: 1810
  • Zero Suit!
    • View Profile
Re: New to modding, working on warping between levels
« Reply #4 on: February 02, 2009, 06:54:23 pm »
Excuse me for my bad explenation, I knew I was wrong somehow, but Particlese, could you explain exactly how it works when you have 2 exits at the same side?
God sees and knows everything, but at least he won't gossip about it.

Offline Particlese

  • Bit Bit
  • ****
  • Posts: 85
    • View Profile
Re: New to modding, working on warping between levels
« Reply #5 on: February 02, 2009, 09:21:05 pm »
Here's a picture that will hopefully make things clearer and explain how it works when you have two exits on the same side.  Each arrow represents a node and points in the direction Naija comes out from it.  Similarly-colored arrows are connected to eachother, and the text on the bottom says what each arrow's node text should be (matching colors again.)  The blue arrows/nodes are not connected to the black ones (and vice-versa) because they're closer to eachother than they are to the black ones.*  The distance is judged by the the nodes' numerical coordinates.


*It could be the distance along a certain axis that matters, but I haven't tested it rigorously.  I'll update this post and the wiki page when I have.

Offline Alphasoldier

  • Dream Bit
  • **********
  • Posts: 1810
  • Zero Suit!
    • View Profile
Re: New to modding, working on warping between levels
« Reply #6 on: February 02, 2009, 09:32:40 pm »
Hehe, nice, did I tell you I'm colorblind yet?

EDIT: Yeah, anyway, I think I get it, when you would have like... 10 passages on a map, all the same X position, it would automaticly pick the right one on the other side by looking at the Y coordinate?
« Last Edit: February 02, 2009, 09:39:28 pm by Alphasoldier »
God sees and knows everything, but at least he won't gossip about it.

Offline Particlese

  • Bit Bit
  • ****
  • Posts: 85
    • View Profile
Re: New to modding, working on warping between levels
« Reply #7 on: February 02, 2009, 10:28:32 pm »
I usually try to avoid using green since most colorblind people I know can't distinguish that from red.  Can't win 'em all, I guess!  I'll add some symbols or something later.

In response to the edit:  as long as they're left/right warps, it'll work that way.  And in the test case I have, a single warp on the left (warp map1 r) will warp you to one of two warps on the right (both warp map1 l) depending on what part of it you enter; both ones on the right will warp to the one on the left.  There are some other weird cases that I haven't tested yet, though.  I'll post again when I do, unless Alec says exactly how they're handled.  I like figuring out stuff like this, though. :)

Offline TheBear

  • Extra Bit
  • *****
  • Posts: 199
    • View Profile
    • http://doconnell.wordpress.com
Re: New to modding, working on warping between levels
« Reply #8 on: February 03, 2009, 01:33:04 am »
I'm using warpnode...as in...
Quote
warpnode mithalas01 exit r

First parameter is which map..second is node to start at...third is what direction Naija should be facing (l or r). So you basically just place a named node next to wherever your calling a warp for the other node to warp to.  I use a "topright" "topmiddle" "topleft" style naming convention for those nodes. You can also use "warplocalnode exit" to warp to a node within a map.

Offline Particlese

  • Bit Bit
  • ****
  • Posts: 85
    • View Profile
Re: New to modding, working on warping between levels
« Reply #9 on: February 03, 2009, 02:02:13 am »
Oh, wow, that's much nicer, and I see warplocalnode was used for the pods in Mithalas.  Excellent!

Offline Alphasoldier

  • Dream Bit
  • **********
  • Posts: 1810
  • Zero Suit!
    • View Profile
Re: New to modding, working on warping between levels
« Reply #10 on: February 04, 2009, 12:52:07 am »
Hah, I knew I heard something familiar before, thanks for clearing that up TheBear, I might even use that.

And Particlese, would you by chance know, or have tested if warplocalnode automatically fades out and in (or something else)? And seeing it says 'local' in the function, I suppose that the node has to be on the same map, right?
God sees and knows everything, but at least he won't gossip about it.

Offline TheBear

  • Extra Bit
  • *****
  • Posts: 199
    • View Profile
    • http://doconnell.wordpress.com
Re: New to modding, working on warping between levels
« Reply #11 on: February 04, 2009, 01:58:27 am »
"warplocalnode" takes a screenshot,  instantly ports naija to the new node, and then quickly fades that screenshot out... and yes the node has to be on the same map.
« Last Edit: February 04, 2009, 02:13:18 am by TheBear »

Offline Alphasoldier

  • Dream Bit
  • **********
  • Posts: 1810
  • Zero Suit!
    • View Profile
Re: New to modding, working on warping between levels
« Reply #12 on: February 04, 2009, 02:04:14 am »
Thank you so much Bear, this'll actually come in handy with the jump mod I'm working on. What are the parameters? just "warplocolnode node"?
God sees and knows everything, but at least he won't gossip about it.

Offline Particlese

  • Bit Bit
  • ****
  • Posts: 85
    • View Profile
Re: New to modding, working on warping between levels
« Reply #13 on: February 04, 2009, 07:37:19 am »
The ones in the whale are:
warplocalnode out
warplocalnode in
warplocalnode in2
warplocalnode out2
The parameter is the name of the node where you want Naija to appear, just like with warpnode.

But the ones in Mithalas have a second parameter.  For example:
warplocalnode 1out out
warplocalnode 1in in

I played around with them in the Native Mod a bit, but I can't figure out what that second parameter is.  Any idea, Bear?

Offline TheBear

  • Extra Bit
  • *****
  • Posts: 199
    • View Profile
    • http://doconnell.wordpress.com
Re: New to modding, working on warping between levels
« Reply #14 on: February 05, 2009, 12:15:32 am »
I don't know...probably nothing. Doesn't seem to affect anything.