Fable: The Lost Chapters Mod Scene
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Fable TLC » Discussion » Level Scripting » !!Chest making Fable Crash!!
icon4.gif  !!Chest making Fable Crash!! [message #42083] Sat, 07 June 2008 09:31 Go to next message
jamics is currently offline  jamics
Messages: 6
Registered: June 2008
Location: Iowa
Ok, this is just another noob's cry for help! BUT I would love to get some help because its realy bugging me. I guess I should fill you in, ok I have Fable Explorer and Albion Explorer, I am just trying to spawn a chest in Look Out Point but every time I go to that region with my chest in the game it exits the game. When I open up Albion Explorer the chest is their and I move it to the exact location I like. This is my chest code plz help!
Quote:

NewThing Object;
Player 4;
UID 43276754875162112453;
DefinitionType "OBJECT_CHEST_OPENABLE";
ScriptName NULL;
ScriptData "NULL";
ThingGamePersistent FALSE;
ThingLevelPersistent FALSE;
StartCTCPhysicsStandard;
PositionX 80.919190;
PositionY 72.856690;
PositionZ 40.023340;
RHSetForwardX 0.724725;
RHSetForwardY 0.689039;
RHSetForwardZ 0.000000;
RHSetUpX 0.000000;
RHSetUpY 0.000000;
RHSetUpZ 1.000000;
EndCTCPhysicsStandard;
StartCTCTargeted;
Targetable TRUE;
EndCTCTargeted;
StartCTCEditor;
EndCTCEditor;
StartCTCChest;
ContainerContents[1] "OBJECT_SUPER_HEALTH_POTION";
ContainerContents[2] "OBJECT_SUPER_MANA_POTION";
ContainerContents[3] "OBJECT_WILL_POTION";
ContainerContents[4] "OBJECT_STRENGTH_POTION";
ContainerContents[5] "OBJECT_SKILL_POTION";
ContainerContents[6] "OBJECT_DOLL_BRIAR_ROSE_01";
ContainerContents[7] "OBJECT_DOLL_HERO_01";
ContainerContents[8] "OBJECT_DOLL_MAZE_01";
ContainerContents[9] "OBJECT_DOLL_SCARLET_ROBE_01";
ContainerContents[10] "OBJECT_DOLL_SCYTHE_01";
ContainerContents[11] "OBJECT_DOLL_TWINBLADE_01";
ContainerContents[12] "OBJECT_SUPER_HEALTH_POTION";
ContainerContents[13] "OBJECT_SUPER_MANA_POTION";
ContainerContents[14] "OBJECT_WILL_POTION";
ContainerContents[15] "OBJECT_STRENGTH_POTION";
ContainerContents[16] "OBJECT_SKILL_POTION";
ContainerContents[17] "OBJECT_DOLL_THUNDER_01";
ContainerContents[18] "OBJECT_DOLL_WHISPER_01";
ContainerContents[19] "OBJECT_TREASURE_CLUE_1";
ContainerContents[20] "OBJECT_TREASURE_CLUE_2";
ContainerContents[21] "OBJECT_TREASURE_CLUE_3";
ContainerContents[22] "OBJECT_TREASURE_CLUE_4";
ContainerContents[23] "OBJECT_SUPER_HEALTH_POTION";
ContainerContents[24] "OBJECT_SUPER_MANA_POTION";
ContainerContents[25] "OBJECT_WILL_POTION";
ContainerContents[26] "OBJECT_STRENGTH_POTION";
ContainerContents[27] "OBJECT_SKILL_POTION";
ContainerContents[28] "OBJECT_TREASURE_CLUE_5";
ContainerContents[29] "OBJECT_TREASURE_CLUE_6";
ContainerContents[30] "OBJECT_PUNCH_CLUB_MEMBERSHIP_L1";
ContainerContents[31] "OBJECT_PUNCH_CLUB_MEMBERSHIP_L2";
ContainerContents[32] "OBJECT_PUNCH_CLUB_MEMBERSHIP_L3";
ContainerContents[33] "OBJECT_DOLL_JACK_OF_BLADES_01";
ChestOpen FALSE;
EndCTCChest;
Health 1.0;
EndThing;


Everybody has ther sexy moments, mine's just all the time!
Re: !!Chest making Fable Crash!! [message #42086 is a reply to message #42083] Sat, 07 June 2008 10:06 Go to previous messageGo to next message
JohnDoe is currently offline  JohnDoe
Messages: 3007
Registered: October 2007

Retired
jamics wrote on Sat, 07 June 2008 11:31

Ok, this is just another noob's cry for help!
jamics wrote on Sat, 07 June 2008 11:31

This is my chest code plz help!
Hmm, another one. Troubleshooting a crash can be hard, but when it's because of a tng it's ridiculously easy to figure out. This is no exception.
ContainerContents[1]
That's it right there. You start off the count at 1, it needs to start at 0. Move the last item to the top and change the number to 0. Problem solved.
For future reference

There. Take notice that each number goes up by one, it must stay in that order, 0, 1, 2, 3, 4, n. If it is out of order, Fable dies. Notice that each object name is in quotes, if it's not, Fable dies. Notice each line ends with a semicolon ( ; ), if you're missing one, Fable dies. If an object is called but doesn't exist, for example, OBJECT_TOF, it is skipped. If it's the only object in the chest, or if all the objects are non-existent, you will freeze and be unable to move, stuck staring at the inside of a glowing chest. Fable doesn't die from this, but you have to kill it to get out, so Fable dies.
Re: !!Chest making Fable Crash!! [message #42088 is a reply to message #42083] Sat, 07 June 2008 10:10 Go to previous message
jamics is currently offline  jamics
Messages: 6
Registered: June 2008
Location: Iowa
OMG! I AM SO BLIND! HOW DID I NOT SEE THAT! Well thanks for pointing that out, I hope it works(IT SHOULD)!

~~EDIT~~

Yup it worked, I guess im more carless with scripting than I am with Texturing! Thanks for the help!


Everybody has ther sexy moments, mine's just all the time!

[Updated on: Sat, 07 June 2008 10:16]

Report message to a moderator

Previous Topic: Need help, please :>
Next Topic: tried to spawn chest but crash
Goto Forum:
  


Current Time: Fri Apr 19 16:16:44 PDT 2024

Total time taken to generate the page: 0.01333 seconds