Trying to modify and use UI in Ryzom [SOLVED]

Added by levye about 5 years ago

Hi
I have recently started to explore and enjoy the ryzom opensource...

What I am working on right now is the UI. I am basically trying to understand how UI works and I have quite a progress.
I checked out the code from svn.

As far as I understood changing the xml files should directly affect the UI. Hence, I tried to modify login_main.xml (...\ryzom\code\ryzom\client\data\gamedev\interfaces_v3\login_main.xml) in order to change the login screen. However, nothing happened, for instance I removed the lines 195,196 to remove the exit button.

<!-- EXIT BUTTON -->
<ctrl style="log_button" id="but_exit" posparent="window" posref="TR TR" y="-20" onclick_l="login_quit" hardtext="uiExitLogin" />

The thing I am wondering to know is why it didn't work? Are the xml files redundant? If so how can I modify the UI (i.e. the login screen)?

Thanks already!


Replies (3)

RE: Trying to modify and use UI in Ryzom - Added by Mankar about 5 years ago

Levye,
The xml files aren't redundant, but they need to be in the right folder for the client to see them. I believe that for login_main.xml the client is looking for it to be in \data\gamedev from wherever your launching the client exe. The client treats bnp files like folders but will use actual folders in the \data directory to override whatever is in the bnp.

-Mankar

RE: Trying to modify and use UI in Ryzom - Added by kervala about 5 years ago

You should copy your modified files in "user" data :)

For example, some lua files has been fixed on Mercurial but the original files present in .bnp are not fixed, so if you have a bug with Lua, please copy these files in "user" folder :(

RE: Trying to modify and use UI in Ryzom - Added by levye about 5 years ago

Thanks to you all guys!

As I experimented, putting those file into the data folder doesn't override the .bnp file content however putting them into user folder does ! :D

Soon I will pop up with many more questions about UI :)

thnx

(1-3/3)