Savallusion
#swipeproject
Hello DevBesters! Here's a small tutorial on how to create a custom room model. I'll explain how and what the different letters or numbers mean in the database on it's way.
What you need:
Start up your emulator and go into your database. Then find the table "room_models" and click "insert".
Step 2
Learning the letters and numbers and their functions.
Creating the room model itself. The codes need to be structured in how the room model will look. Here's an example:
You can also play with the door values for your own, but i wouldn't suggest uploading a custom room model that is not finished onto an open hotel a the emulator require a restart to update the room model of a room.
When you have made your room model, save it and insert it into the database.
Step 4
Adding the room model to a room.
The room model won't be shown in the room creator in-game, this means you have to create a random room and update it's room_model either via DB or via you HK. When this is done, restart your emulator, and go into your room! It should show up as you designed it!
Step 5
Understanding the door concepts. First you need to have knowledge of what the x and y axis are, the X axis is the horizontal line, which makes the door go forwards from it's current position. The Y axis is the vertical one, which makes it go up or down your room model. The Z does only let it go higher up, like if you want the door on the second floor. Door_dir pretty much says itself, it makes the user go into the door in one direction.
Image of door-areas in the tabel:
Remember: door_dir is usually 2! And you will have to insert in the id row, "model_somethingherewhichyoudecide".
Any problems, questions or suggestions regarding my tutorial is appreciated and will be answered as fast as possible.
What you need:
- A working r40+ database (most people use r63 nowadays)
- A CMS set up, so you can see if you've done it right (of course this includes working SWF's aswell)
- A working emulator
- Simple designing knowledge.
Start up your emulator and go into your database. Then find the table "room_models" and click "insert".
Step 2
Learning the letters and numbers and their functions.
Step 3
- "x" is the blank spots, this means you decide where the black spots without a floor shall be.
- "0" is the middle floor, mainly where you walk at once you get in the room.
- "1" is the upper floor, mostly used to get to these areas by adding stairs.
- "2" is the stairs. These are somewhat hard to use, atleast for me.
- "3" is the lower floor. Also gets to these areas by using stairs or other stuff.
Creating the room model itself. The codes need to be structured in how the room model will look. Here's an example:
Screenshot of room design above:xxxxxxxxxxxxxxxxxxxx
x0000x000000x0000x
x0000x000000x0000x
x0000x000000x0000x
x0000x000000x0000x
x0000x000000x0000x
x0000000000000000x
x0000000000000000x
You can also play with the door values for your own, but i wouldn't suggest uploading a custom room model that is not finished onto an open hotel a the emulator require a restart to update the room model of a room.
When you have made your room model, save it and insert it into the database.
Step 4
Adding the room model to a room.
The room model won't be shown in the room creator in-game, this means you have to create a random room and update it's room_model either via DB or via you HK. When this is done, restart your emulator, and go into your room! It should show up as you designed it!
Step 5
Understanding the door concepts. First you need to have knowledge of what the x and y axis are, the X axis is the horizontal line, which makes the door go forwards from it's current position. The Y axis is the vertical one, which makes it go up or down your room model. The Z does only let it go higher up, like if you want the door on the second floor. Door_dir pretty much says itself, it makes the user go into the door in one direction.
Image of door-areas in the tabel:
Remember: door_dir is usually 2! And you will have to insert in the id row, "model_somethingherewhichyoudecide".
Any problems, questions or suggestions regarding my tutorial is appreciated and will be answered as fast as possible.