Jump to content
The Dark Mod Forums

Where is 'readableOpen'?


LongShad

Recommended Posts

Thx.

I edited 'tdm_readable.script' and game crashed. I just delete commentary:

/*string lastMatch = "";
	while ((key = getNextKey("", lastMatch)) != "") {
		//sys.print("Spawnarg: " + key + " = " + getKey(key) + "\n");
		lastMatch = key;
	}*/

and put file back to tdm_base01.pk4. I can't change anything, game crashed anyway in loading mission screen.

If i put original file, then game running normal.

Edited by LongShad
Link to comment
Share on other sites

to print text on screen you have to make a custom gui file or use the atdm:gui_message object

to make a book you create xdata with the in darkradiant readable editor

to edit the loading screen you copy and edit the new copy of mainmenu_briefing.gui

to edit the loading bar gui you make a copy of the original or the one from the st lucia map and edit to what you need and call it <yourmapname>.gui and put it in a directory in a custom guis/map/

to start the game with a book open its something like in the <nameofyourmap>.script file

void Main()

{

$nameofbook.activate( $player1 );

}

Link to comment
Share on other sites

I don't want print text to screen. I say what script doesn't work, no error message or number of line, just crash-message.

And i all-just deleted a comment! I don't make some changes, script should be working! How can this be?

I yet replaced spaces to tabs, and game not accept my script-file.

Edited by LongShad
Link to comment
Share on other sites

Do not edit the pk4's. Simple put the replacement in the respective folder in you mission folder.

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

stumpy

its not a comment, so removing it causes the game to crash.

I not delete any game files - just extract tdm_readable.script, delete language comment or change spaces to tab, No deal real code modify.

And add this file back to tdm_base01.pk4 and run game. In begin loading save - this error-message.

 

I try put edited file in darkmod/script/ directory, but error still here. And when come back original file, then loading continues.

Game just reject any changes in script.

 

grayman

1 - What are you trying to do?

Change game script.

2 - What is keeping you from doing it?

Game, what crashed out of any change in tdm_readable.script. I don't understand how You edit this files.

I only understand English, so if you're getting error messages, it would help if you attempt to translate them to English.

TheDarkMod.exe - Application error

Instruction at address "0x1251E37A" referenced to memory by address 0x00000724, Memory can't be read.

OK - Terminate application

Cancel - Debug this application

Obviously is null-pointer situation.

 

I already wasted 3 days to try change something in game, without any change in script or code.

Edited by LongShad
Link to comment
Share on other sites

Okay, so we're getting a little closer to the problem.

 

As I understand it, you're trying to change a script so it does something different than the default that comes with TDM.

 

If you extract tdm_readables.script from its pk4 and place it in darkmod/script/tdm_readables.script, then TDM is going to use the extracted version instead of what's in the pk4. You don't need to put the changed script back into its pk4.

 

If you do this, and make no changes, does TDM run properly?

 

Are you building your own mission?

 

Or are you running an existing mission and you're just trying to 1 - figure out how something works, or 2 - trying to change the behavior of something so the game plays differently for you?

 

Now, to the particulars:

 

Which script are you trying to change, and how are you changing it? Please wrap the original script routine in a "code - /code" section, then follow that with a second "code - /code" section that shows the changes you want to make.

 

I assume from what you've already said, that with your changes in place, the game crashes. Maybe if we can see what you changed, we can help identify the problem.

Link to comment
Share on other sites

I already do this! I put original file in darkmod/tdm_base02.pk4/script, and put edited file in darkmod/script/ or darkmod/fms/saintlucia. And appear same error in both situasions,

I just remove this:

   	 /*string lastMatch = "";
	while ((key = getNextKey("", lastMatch)) != "") {
		//sys.print("Spawnarg: " + key + " = " + getKey(key) + "\n");
		lastMatch = key;
	}*/

I already say it before.

Edited by LongShad
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • Petike the Taffer  »  DeTeEff

      I've updated the articles for your FMs and your author category at the wiki. Your newer nickname (DeTeEff) now comes first, and the one in parentheses is your older nickname (Fieldmedic). Just to avoid confusing people who played your FMs years ago and remember your older nickname. I've added a wiki article for your latest FM, Who Watches the Watcher?, as part of my current updating efforts. Unless I overlooked something, you have five different FMs so far.
      · 0 replies
    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 4 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
×
×
  • Create New...