Jump to content


Photo

New to DR : Readables and xdata

readables xdata

9 replies to this topic

#1 kingsal

kingsal

    Member

  • Member
  • PipPip
  • 355 posts

Posted 27 September 2014 - 09:01 PM

Hello!
I am new to DR and I am trying to get some working readables in my map.
Currently, I have my xdata and strings files (copied from St Lucia) placed in my darkmod/fms/project folder under strings and xdata.
This works okay, but in order to see my edits to the strings I have to re-install my map.

- Is there a way to place an xdata folder in the darkmod/maps folder where I keep my other working map files? Rather than having to re-install my FMS every time?
- Where does the readable editor in DR place its xdata? Every time I open it is says failed to (Xdata Name)



Sorry for such a newbie question, but I appreciate the help. I can't seems to find this info in the tutorials.
Thanks!

#2 Lux

Lux

    Advanced Member

  • Member
  • PipPipPip
  • 1575 posts

Posted 28 September 2014 - 04:42 AM

Sounds like a path issue. What do you have DR Game preferences set to? You need to type in your FM directory name for your FM in the "Mod Base" field so DR knows where to put stuff.

Posted Image

Edited by Lux, 28 September 2014 - 04:43 AM.


#3 SteveL

SteveL

    Hero Coder

  • Active Developer
  • PipPipPipPip
  • 3669 posts

Posted 28 September 2014 - 04:56 AM

And I think you have to restart TDM to make it update the readables. You don't actually need to reinstall the map -- that's just one way of restarting TDM.

#4 kingsal

kingsal

    Member

  • Member
  • PipPip
  • 355 posts

Posted 28 September 2014 - 01:32 PM

Awesome!

That did it. I checked to make sure my fms directory was correct in DR. I also I didn't realize you could just restart TDM to update the readables.
Thanks guys, much appreciated.

#5 SteveL

SteveL

    Hero Coder

  • Active Developer
  • PipPipPipPip
  • 3669 posts

Posted 28 September 2014 - 02:56 PM

You're welcome. Good luck with the map!

#6 Lux

Lux

    Advanced Member

  • Member
  • PipPipPip
  • 1575 posts

Posted 28 September 2014 - 03:26 PM

Is there a "reload ___" command you can use at the console so you don't have to restart TDM? Just curious.

#7 SteveL

SteveL

    Hero Coder

  • Active Developer
  • PipPipPipPip
  • 3669 posts

Posted 28 September 2014 - 03:31 PM

There's apparently a "reloadxdata" command. I've not tried it but it's in the code:
"reloadXData" "Reloads the xdata declarations and refreshes all readables."


#8 Lux

Lux

    Advanced Member

  • Member
  • PipPipPip
  • 1575 posts

Posted 28 September 2014 - 04:28 PM

ah, cool! I had seen Obstortte reload a couple different things in the console so he didn't have to restart TDM in his tutorial videos which made me curious about this.

Thanks for the info.

#9 Obsttorte

Obsttorte

    Scripting guru, Mapper

  • Active Developer
  • PipPipPipPipPip
  • 5702 posts

Posted 29 September 2014 - 02:18 PM

reloadXdata works. It reloads the data stored in the xdata files.

There are a couple more, though:
  • reloadScript: reload custom scripts (except the one in the mapname.script, it's reloaded upon map start)
  • reloadEngine: reloads the engine, which is needed if you have changed a material or an entity definition or a particle for example
On another note: idTech4 console commands are not case-sensitive, so you can past them without having to care about that.

There is also a devmap command, which loads a map in developer mode. But I don't use it so I can't say what it is doing.

There are other useful things:
  • r_showPortals 1: shows visportals and whether they are open (green) or closed (red)
  • com_showFPS 1: shows FPS ingame
  • it is possible to bind a key to a command displaying the aas areas in game, which is used for ai navigation. this is extremely useful to solve ai navigational problems (like them walking in circels on one spot)
  • r_showLightCount 1: shows how much light falls onto each triangle, good for solving performance issues
  • r_showTris 1: displays all tris. this is good to find out where it makes sense to convert worldspawn into func_static to save performance
  • tdm_hud_hide_lightgem 1: (not completely sure whether it was called like that) disable showing the lightgem, which is good for taking screenies :)
  • there are a couple of commands for ai to check there alert state, and it is possible to show sound propagation in game, which together can be useful to tweak gameplay.
  • etc...
If you google cvar console commands you should find a complete list somewhere.
  • Lux likes this
FM's: Builder Roads, Old Habits, Old Habits Rebuild
WIP's: Several. Although after playing Thief 4 I really wanna make a city mission.
Mapping and Scripting: Apples and Peaches
Sculptris Models and Tutorials: Obsttortes Models
My wiki articles: Obstipedia
Let's Map TDM YouTube playlist: ObstlerTube
Texture Blending in DR: DR ASE Blend Exporter

End of shameless self promotion.

#10 kingsal

kingsal

    Member

  • Member
  • PipPip
  • 355 posts

Posted 02 October 2014 - 01:55 AM

Awesome! Being able to reload the xdata in game will save me a lot of headache. Thanks so much!



Reply to this topic



  



Also tagged with one or more of these keywords: readables, xdata

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users