trying to making chunks and making them work

Help and support for TorchED, the Torchlight editor.

trying to making chunks and making them work

Postby aholman » Sat Nov 14, 2009 1:01 pm

Ok so thanks to Asto I got my layout to work. So I'm in the next step, wanting to make chunks that work as a dungeon. I thought I would do it the same way as in the tutorial and trying to make my chunk an entrance chunk to begin with. used chunk palette to make an ENTRANCE_W. made my layout fit inside the chunk. Meaning I'm not using SingleRoom because it won't work when adding more chunks.
So right now it's VERY hidious work to test my chunk. Right now my game hangs when I enter and only solution is to Restart my computer which makes troubleshooting very hard.

Is anyone else trying chunks out and made progress, I'd be happy to hear some pointers or maybe figuring it out together..

*edit* I only had an entrance chunk. So when I put min chunk and max chunk to 0 a premade level loaded. Now I should be able to load my own level. It just loaded a premade chunk even though I only included my own :O

*EDIT* Yay I finally made my own chunk work as entrance and not single room. So finally I can do some building of level:D
aholman
 
Posts: 293
Joined: Wed Oct 28, 2009 3:16 am

Re: trying to making chunks and making them work

Postby Asto » Sat Nov 14, 2009 2:02 pm

hmm the following text includes some ideas, no facts

    i guess it works like this: chose a chunk palette to see where the "entrance" and "exit" path has to be - create some chunks that could fit together and in the rule set of your dungeon at the chunktype tab add all those chunks (i guess you have to save the chunk layouts in adequate folders, so 1X1NE chunkfiles belong to layouts/crypt/1X1NE/chunk.layout etc
    So on the Layout Tab you can put them all together

but... don't know ;)
i didn't work with different chunks yet

EDIT: Tell us / me some details :D
User avatar
Asto
 
Posts: 51
Joined: Thu Nov 12, 2009 12:50 am
Location: Germany

Re: trying to making chunks and making them work

Postby Jermanfu » Sat Nov 14, 2009 2:20 pm

Ok I have been able get multiple chunks to connect together and then go into game and wander around in them. I'll try the best I can to explain:

First off, this is kind of a combination of Asto's tutorial found here http://forums.runicgames.com/viewtopic.php?f=28&t=6791 and the tutorial found in the TorchED folder titled "Creating a room".

1) First I started with the Runic tutorial. Open the editor and click on view >> chunk palette. For my dungeon I opened CRYPT:1X1ENTRANCE_N. I applied this to the workspace. Basically what this does is give you a grid which will allow your player to exit this "chunk" northward to the next "chunk" in the level.

2) Next navigate to TorchED/media/layouts/crypt/1X1ENTRANCE_N folder (or whichever folder matches your orientation). I opened one of the chunks into the editor. (MAKE sure you add a player start point in this chunk)

3) Next I saved this "chunk" as its own layout (name it something you'll recognize. I named mine 1X1ENTRANCE_N_JS_A) in my mod folder. In My instance it looks like this mods/mymod/media/layouts/crypt/mymod. replace mymod with the name of your mod and crypt with whatever setup you decided on.

4) Now, I'm assuming you've read Asto's tutorial above, because there is some integration here. Read the part where he talks about editing chunks and such.

5) Open the dungeon editor and click on the rules tab. Click on the rules set you've made. If you haven't done so, make a rule set for your dungeon by copying an existing one or making a new one. Click on chunk types tab, and then click on modify under the box named "Chunk Types". click on the chunk type that matches the one you made earlier (see step 1). So in my case I click on 1X1ENTRANCE_N.

6) Next in the middle section click on the pull down tab under "folder". Navigate to where your layout chunk is saved from earlier (mymod folder or something like that). Then in the right hand box named "Inclusive Chunks". You should see 1X1ENTRANCE_N_JS_A (see step 3. Replace this with what you named it.) Click on it and add it.

7) This step is VERY Important. Click on layout. This is where you get a visual of how your chunks will match up. Right now all we have made is one chunk. It's a chunk that starts the player and exits him to the north. Now this confused me at first, but when you are looking at the layout grid here, SOUTH is ACTUALLY NORTH. And vice versa. I have no idea why. Anyway, keep that in mind. Right click on the center square and click on the chunk that says 1X1ENTRANCE_N (see steps 1 and 5).

8) Now you should see a little blue square with a red dot representing the exit out of this chunk. It will be on the bottom (which is the north side of the room as your playing). Now save this layout. If it gives you an error, exit out of the dungeon editor and reopen it. Readd the inclusive chunk from step 6. Now it should let you save.

9) Next, now that you have your first chunk it's time to add another chunk or room. Start with step 1 again. We're gonna make a new chunk. Only this time, we know that our exit from the previous chunk that we made is coming into the NEW chunk from the south (our first chunk exits to the north, remember?). So navigate to the chunk palette and find one that has south exit, it can be CRYPT:1X1SE or CRYPT: 1X1SW, or whatever, as long as it has a south exit to match up to the north exit from the first chunk. Apply the one you have chosen.

10) Next follow the steps from 2 on. When you open the new layout for this room (make sure it matches your orientation. For ex: if you chose CRYPT:1X1 SE make sure you chose the same layout. Use the coordinates on the right hand side if need be to make sure your exits match up with the yellow lines on the grid.

11) follow the steps all the way through including adding the chunks to your layout. As you add more rooms, your layout should match up. Meaning red squares (or doorways) matching up to adjacent rooms. Make sure to save your rules set often.

You should be able to load up the map and walk through multiple chunks now if you lined them up right. Hope this helps. I may have not been clear enough. I'll try to answer questions if you have any.
Jermanfu
 
Posts: 30
Joined: Tue Nov 10, 2009 4:58 am

Re: trying to making chunks and making them work

Postby aholman » Sat Nov 14, 2009 2:22 pm

Thanks I got it to work. I also found that EXTEND_BRIDGE_COLLISION_01 is an invisble transition. First I was dissapointed and thought I had to use a Bridge which would not work with my dungeon idea at all hehe.

Guess im grabbing a mod to increase base walking speed ALOT to test levels hehe
aholman
 
Posts: 293
Joined: Wed Oct 28, 2009 3:16 am

Re: trying to making chunks and making them work

Postby Asto » Sat Nov 14, 2009 2:25 pm

ty very much for the detailed information - so my "idea" above was right - hurray ^^

i have to start playing around with chunks soon, let's see what we get ;)
User avatar
Asto
 
Posts: 51
Joined: Thu Nov 12, 2009 12:50 am
Location: Germany

Re: trying to making chunks and making them work

Postby aholman » Sat Nov 14, 2009 2:27 pm

Are any of you in the chat in Steam group torchlight:)?
aholman
 
Posts: 293
Joined: Wed Oct 28, 2009 3:16 am

Re: trying to making chunks and making them work

Postby aholman » Sat Nov 14, 2009 2:35 pm

I think a chunk with SE means it exits at south and enters at east. so fits with a previous chunk that exits at west
aholman
 
Posts: 293
Joined: Wed Oct 28, 2009 3:16 am

Re: trying to making chunks and making them work

Postby Asto » Sat Nov 14, 2009 2:36 pm

nope ^^
not yet and not today, maybe tomorrow =)
User avatar
Asto
 
Posts: 51
Joined: Thu Nov 12, 2009 12:50 am
Location: Germany

Re: trying to making chunks and making them work

Postby Jermanfu » Sat Nov 14, 2009 3:49 pm

aholman wrote:I think a chunk with SE means it exits at south and enters at east. so fits with a previous chunk that exits at west


That's Probably it aholman. I could be looking at it wrong. It just confused me to see a chunk titled 1X1ENTRANCE_N but when I put it on the layout screen under the rules, it shows an exit to the south lol.
Jermanfu
 
Posts: 30
Joined: Tue Nov 10, 2009 4:58 am

Re: trying to making chunks and making them work

Postby aholman » Sat Nov 14, 2009 4:11 pm

Jermanfu wrote:
aholman wrote:I think a chunk with SE means it exits at south and enters at east. so fits with a previous chunk that exits at west


That's Probably it aholman. I could be looking at it wrong. It just confused me to see a chunk titled 1X1ENTRANCE_N but when I put it on the layout screen under the rules, it shows an exit to the south lol.

But hmm... I'm having problems to get my second chunk to actually spawn :O have min and max chunk set to 2. But it just spawns the first entrance. I don't crash though
aholman
 
Posts: 293
Joined: Wed Oct 28, 2009 3:16 am

Re: trying to making chunks and making them work

Postby Shardz » Sun Nov 15, 2009 10:40 pm

Now when you say "load it up", how exactly are you previewing your chunks in the game? I just spent three hours trying to find my map chunk in the game before finding this thread and I'm a bit frustrated. The chuck is high quality, large, and looks great - apparently that was the easy part. Can you explain like I'm a 3 year old how to load this up in the game? I tried the console commands; DUNGEON CRYPT & RANDOMCRYPT1-10 to no avail. They certainly didn't make the scripting part all that easy.

The documents for the level editing and chunks were VERY simple and didn't cover half the process apparently. It just says create within your mod folder/structure (eg 1X1NS) your chunk file (1X1NS_XX_A.layout) and it will pop up in the game! Simple as that! :roll:
User avatar
Shardz
 
Posts: 1347
Joined: Tue Sep 29, 2009 4:54 pm

Re: trying to making chunks and making them work

Postby aholman » Mon Nov 16, 2009 12:25 am

Shardz wrote:Now when you say "load it up", how exactly are you previewing your chunks in the game? I just spent three hours trying to find my map chunk in the game before finding this thread and I'm a bit frustrated. The chuck is high quality, large, and looks great - apparently that was the easy part. Can you explain like I'm a 3 year old how to load this up in the game? I tried the console commands; DUNGEON CRYPT & RANDOMCRYPT1-10 to no avail. They certainly didn't make the scripting part all that easy.

The documents for the level editing and chunks were VERY simple and didn't cover half the process apparently. It just says create within your mod folder/structure (eg 1X1NS) your chunk file (1X1NS_XX_A.layout) and it will pop up in the game! Simple as that! :roll:


I think the best way, is first to follow dungeon portal tutorial, if you follow the one supplied in the torcEd Assets with a few exceptions:
When the tutorial tells you to save your ruleset, don't clone make on from scratch, and compare to another ruleset, for example crypt\rules.dat.
You only need a few settings here, im not even sure if you need any really, you should check randomized, and uncheck exit required.

I would start by first to see if the portal works to an existing dungeon, like Main. Just so see that the portal is fine. After that link the portal to your own dungeon. I don't know any other way to try your chunk or dungeon in another way then making a portal or scroll. Also you need to make a dungeon, and dungeon ruleset to try it, I don't know if you can try it ingame without one.

In your dungeon ruleset file. It should work when follow the steps mentioned above.

I think whenever you add a chunk to the clayout under ruleset, for one your child randomization breaks if you have any weight or random. Also you need to restart the game to see the updated layout, probably delete adm, cmp files in your mod folder
aholman
 
Posts: 293
Joined: Wed Oct 28, 2009 3:16 am

Re: trying to making chunks and making them work

Postby aholman » Mon Nov 16, 2009 12:33 am

Jermanfu wrote:
aholman wrote:I think a chunk with SE means it exits at south and enters at east. so fits with a previous chunk that exits at west


That's Probably it aholman. I could be looking at it wrong. It just confused me to see a chunk titled 1X1ENTRANCE_N but when I put it on the layout screen under the rules, it shows an exit to the south lol.


Yeah I was confused if you meant the layout in ruleset or in TorchEd chunk palette. It's weird hehe.

Anyway. I wonder if anyone might have tried not using any layout at all for chunks. Doesn't the game work with just random chunk that fit each piece together. I'm thinking like this:

If you make for example a chunk entrance_N and for example 3 chunks made of _ES, _WS, _NS the game picks one of those.
I tried to do it with just including my own chunks but not setting a layout, and because I have no layout I just end up in an empty dungeon.

Isn't that how the game works with chunks, because none of the premade have chunks hardcoded to layout, except for ones that are 1X1SINGLEROOM
aholman
 
Posts: 293
Joined: Wed Oct 28, 2009 3:16 am

Re: trying to making chunks and making them work

Postby Shardz » Mon Nov 16, 2009 12:22 pm

I doubt very much the devs linked up a portal or a map scroll to simply test their level chunks in the game. There has to be an easier way to test the level chunks *in place* as they were meant to be without having a portal. This is what I really need to know.
User avatar
Shardz
 
Posts: 1347
Joined: Tue Sep 29, 2009 4:54 pm

Re: trying to making chunks and making them work

Postby aholman » Mon Nov 16, 2009 12:28 pm

Shardz wrote:I doubt very much the devs linked up a portal or a map scroll to simply test their level chunks in the game. There has to be an easier way to test the level chunks *in place* as they were meant to be without having a portal. This is what I really need to know.

Actually for that purpose I guess you could replace torchlight town with yuor layout, this should be able to do and speed up testing
aholman
 
Posts: 293
Joined: Wed Oct 28, 2009 3:16 am

Re: trying to making chunks and making them work

Postby aholman » Mon Nov 16, 2009 12:33 pm

Yes just change the Town's ruelset to your own dungeon ruleset and it will work.
Thanks for the idea helps alot then going through a portal everytime
aholman
 
Posts: 293
Joined: Wed Oct 28, 2009 3:16 am

Re: trying to making chunks and making them work

Postby Shardz » Mon Nov 16, 2009 1:16 pm

Well, I have no idea how to do that. I'm good at designing the levels, but I'm not very good with this other editor stuff. I did check out that 1080p portal tutorial and the instructions, but I'm trying to make my chunk fit into the stock game instead of creating a portal to it. I would also like to test my chunk in place this way randomly and I'm having trouble doing this.

Here's my first finished level chunk, by the way.
viewtopic.php?f=23&t=6027&start=20#p71392
User avatar
Shardz
 
Posts: 1347
Joined: Tue Sep 29, 2009 4:54 pm

Re: trying to making chunks and making them work

Postby FireMind » Wed Nov 25, 2009 7:36 pm

If you still have questions or don't know how to get multiple chunks to work.

Check out my Video Tutorial:
viewtopic.php?f=28&t=8076
TorchlighCC
A community looking to expand Torchlight with created dungeons and quest.
Join us now!

TURORIALS:
Dungeon & Warper
Multiple Chunks
Merchant/NPC Spawn in Town
Purchasable Scroll to your Dungeon
User avatar
FireMind
 
Posts: 69
Joined: Tue Oct 27, 2009 3:35 pm


Return to TorchED Help and Support

Who is online

Users browsing this forum: No registered users and 0 guests