cRPG

cRPG => Scene Editing => Topic started by: Torak on February 09, 2011, 02:42:30 am

Title: ladders and gate's in siege
Post by: Torak on February 09, 2011, 02:42:30 am
How do you add ladders that you can take up and down??? and does the gate just work when you play multiplayer or do i have to do someting in mapeditor??
and hoe do you make the doors work??
Title: Re: ladders and gate's in siege
Post by: Kong Ming on February 09, 2011, 05:36:33 am
All is revealed.....

http://forums.taleworlds.com/index.php/topic,112806.0.html
Title: Re: ladders and gate's in siege
Post by: CtrlAltDe1337 on February 09, 2011, 05:44:30 am
You can also check out this thread: http://forums.taleworlds.com/index.php/topic,89831.msg2321184.html#msg2321184
Title: Re: ladders and gate's in siege
Post by: Kong Ming on February 09, 2011, 05:59:27 am
Yes, also fantastic.
Title: Re: ladders and gate's in siege
Post by: Torak on February 09, 2011, 02:54:49 pm
Tanks guys :) hope you will enjoy my siege map when its done :)
Title: Re: ladders and gate's in siege
Post by: Torak on February 09, 2011, 08:52:03 pm
I don't get this cant find the files

"Testing the map

Exit the editor and save the changes.  (The changes will be applied to the map you edited.  You may need to go and rename the file or copy, paste, rename in your module folder.)
You need to then edit, module_scenes,module_scripts and module_strings and add your map in.  If you do a search for multi_scene you'll find the relevant area for your code.  Looking at other maps should make it self explanatory.  You may need to copy in the height map code of the map you edited.  This is the 0x09808088 number that appears in module_scenes.

After you've done that, voila, start up a server, choose siege and load up your map!"
Title: Re: ladders and gate's in siege
Post by: Nasturtium on February 09, 2011, 09:08:12 pm
I am unclear what you are saying, are you asking for someone to explain the text that you put in quotation marks? What is it that you don't get?
Title: Re: ladders and gate's in siege
Post by: Torak on February 09, 2011, 10:17:07 pm
I am trying to find the things that the text is saying but i can't find the files
Title: Re: ladders and gate's in siege
Post by: Torak on February 09, 2011, 10:23:39 pm
nwm i got it :P
Title: Re: ladders and gate's in siege
Post by: Nasturtium on February 09, 2011, 10:25:40 pm
Get notepad ++.

 in the /m&b/Modules/YourMappingModule dir. find stings.txt, and scenes.txt

 Open them and in scenes.txt search for scn_multi, this will take you to the relevant code

 In strings search for the same, again, you should find the relevant strings.

good luck!
Title: Re: ladders and gate's in siege
Post by: Torak on February 09, 2011, 11:04:39 pm
ok scn_multi dosent work in strings or in scripts its just says it can find it
Title: Re: ladders and gate's in siege
Post by: Nasturtium on February 09, 2011, 11:09:56 pm
ok just try "multi"
Title: Re: ladders and gate's in siege
Post by: Torak on February 09, 2011, 11:21:12 pm
ok that works and what do i ad? is it just "scn_castle_36_exterior castle_36_exterior 256 none none 0.000000 0.000000 100.000000 100.000000 -100.000000 0x000000013007b2630005695c00001ebe0000028e00007e37
  0
  0
 outer_terrain_plain"
Title: Re: ladders and gate's in siege
Post by: Torak on February 10, 2011, 12:18:55 am
ok i tink that i have got it right exept the script it dosent make any sense

http://img199.imageshack.us/f/scriptsz.jpg/
Title: Re: ladders and gate's in siege
Post by: Airith on February 10, 2011, 12:44:54 am
ok i tink that i have got it right exept the script it dosent make any sense

http://img199.imageshack.us/f/scriptsz.jpg/
That's the scripts.txt file, you want the scenes.txt file.
Title: Re: ladders and gate's in siege
Post by: Torak on February 10, 2011, 12:52:07 am
yes i know i have done al i have to do (i think) but the script file dosent make any sense i donät know what to add in it.

Maybe you can tell me waht to add to the diffrent files?

This one is from scenes the "code"
"scn_castle_36_exterior castle_36_exterior 256 none none 0.000000 0.000000 100.000000 100.000000 -100.000000 0x000000013007b2630005695c00001ebe0000028e00007e3 7
  0
  0
 outer_terrain_plain"
Title: Re: ladders and gate's in siege
Post by: Airith on February 10, 2011, 06:48:44 am
If you're doing it the dirty way, with the .txt files, then you don't need to (well actually you can't) edit the scripts.txt file. It's written in warband code, random numbers afaik.
Title: Re: ladders and gate's in siege
Post by: Kong Ming on February 10, 2011, 09:31:59 am
Torak, if you happened to use my guide/download to start editing maps then you don't need to do this step.  If you didn't, you should, and then I can tell you how to get your map transferred to it.  Just let me know.
Title: Re: ladders and gate's in siege
Post by: Torak on February 10, 2011, 05:01:15 pm
I used the editor that came withe the game i did not download anything so how do i test the map?.

I know how to get the map out and send it to pepole so they can put it in there singelplayer
Title: Re: ladders and gate's in siege
Post by: Kong Ming on February 10, 2011, 07:21:09 pm
Ah, okay.  Here's my suggestion:

1.  First, go to my guide at this link and follow the instructions for "Setup" and "Adding the Scenes":  http://forum.c-rpg.net/index.php/topic,1385.0.html

2.  Then, once you've made that module, place a copy of your map's .sco file into that new module's SceneObj folder.  Rename this copied .sco file "my_scene_20.sco" (assuming your map is a siege map.  if it's battle, call it "my_scene_1.sco" instead)

3.  Next, open the strings.txt file in the new module, do a search for "my_scene_20" (or 1, depending on what you called it).  Then in that listing, replace the terrain code with the terrain code you used for your map.  My guide has a section on "Terrain Code" if you need more help with this step.

4.  After you've done those two adjustments, you should be able to run that new module, host a multiplayer game, and run map #20 to see your new map (or #1 if it was battle instead of siege.)  Ta Da!!


NOTE:  The whole 1 and 20 thing is because these mod files I made add 20 blank maps that you can edit in multiplayer directly.  However maps 1-15 are set up specifically for battle/deathmatch and maps 16-20 are reserved specifically for siege.  So you can use whatever number you please ultimately, as long as the .sco and the scenes.txt entry are the same number.

It may feel like a bit of work up front, but once you've done all this, any time you want to start editing a new map, you can just host a multiplayer game in the new module and pick one of these 20 scenes to start editing immediately and playtest.

Let me know if you have any questions!
Title: Re: ladders and gate's in siege
Post by: Torak on February 11, 2011, 02:41:15 am
ok i will test this tanks :)
Title: Re: ladders and gate's in siege
Post by: Torak on February 11, 2011, 04:55:16 pm
ok the thing is that i alredy have a map made and i don't want to remake the map it takes to long and will not be the same
Title: Re: ladders and gate's in siege
Post by: Kong Ming on February 11, 2011, 06:35:07 pm
If you follow all of my instructions, this should copy your map to the new module so you don't have to remake it.
Title: Re: ladders and gate's in siege
Post by: Torak on February 11, 2011, 08:51:11 pm
ok ihave tried this way now but i can't get the map up can't you make a video about how to mae this becuas this is not clear to me you only wright half of it  "3.  Next, open the strings.txt file in the new module, do a search for "my_scene_20" (or 1, depending on what you called it).  Then in that listing, replace the terrain code with the terrain code you used for your map.  My guide has a section on "Terrain Code" if you need more help with this step."

Do i replace "str_my_scene_20 My_Scene_#20" with 0x000000013007b2630005695c00001ebe0000028e00007e37 if so it dosent work at al and i have tried sevral ways but nothing works
Title: Re: ladders and gate's in siege
Post by: Kong Ming on February 11, 2011, 09:58:28 pm
Ack, I misspoke.  It's the entry in scenes.txt NOT strings.txt.  I apologize.

You should see this entry in "scenes.txt":

scn_my_scene_20 my_scene_20 256 none none 0.000000 0.000000 100.000000 100.000000 -100.000000 0x00000002200005000005f57b00005885000046bd00006d9c
  0
  0
 outer_terrain_plain

The terrain code for the map you made should replace the section I've put in bold.

Your strings.txt entry should just look like this:

str_my_scene_20 My_Scene_#20

Title: Re: ladders and gate's in siege
Post by: Torak on February 11, 2011, 10:54:53 pm
o i made it work now :) but i keept my org name

btw do this map work on crpg??

Thanks 4 the help :)
Title: Re: ladders and gate's in siege
Post by: Kong Ming on February 11, 2011, 11:56:14 pm
yeah, crpg doesn't require anything special, it should be fine.  Glad to hear it's working!
Title: Re: ladders and gate's in siege
Post by: Torak on February 12, 2011, 01:12:00 am
yes me 2 and i have you to thank without you i would not made it :)

you can check it out if you want its up now in finished maps :) but ther is somethin taht i don't show in the pic's and that is the secret of the map ;)