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

    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 3 replies
    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 7 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
×
×
  • Create New...