Development > Newbie Coding
UI Adjustments.
bayo:
--- Quote ---the question is where does the changes being saved?
--- End quote ---
On your home.
mn_push is for 2.3, ui_push is for 2.4 cause i rename everything, cause i dont like "menu" token.
mor2:
its possible i have encountered a bug, replacing graphics works, for example:
original X.png from UFOAI-2.3\0base.pk3
replaced by placing it in UFOAI-2.3\base\pics\hud\X.png
but replacing scripts, has a glitch and the game doesnt past the init stage.
i extracted althud.ufo from UFOAI-2.3\0ufos.pk3
to UFOAI-2.3\base\ufos\ui\althud.ufo
stuck.
as for the home dir, this didnt help, i have no such thing in my %appdata%\UFOAI\2.3\base\ufoconsole.log
--- Quote from: bayo on October 21, 2010, 11:08:46 pm ---For dir, run the game and check the logs below "---- filesystem initialization -----".
--- End quote ---
DarkRain:
--- Quote from: mor2 on October 26, 2010, 04:56:19 pm ---but replacing scripts, has a glitch and the game doesnt past the init stage.
i extracted althud.ufo from UFOAI-2.3\0ufos.pk3
to UFOAI-2.3\base\ufos\ui\althud.ufo
stuck.
--- End quote ---
Assuming you didn't have a typo, yes there are some bug with parsing, for example last time I tried to make a bar with a non-default direction (vertical) game crashed at startup -- size mismatch -- seems that the orientation of the bar is declared as a byte while the game is trying to parse an integer, so it crashes, maybe there's a similar bug somewhere else?
bayo:
It dont crash, it exit with an error message.
If it crash, please provide a backtrace,
And if it dont crash and the message dont help you, please more explicite.
Bar direction only work for 2.4. Here you have examples http://ufoai.git.sourceforge.net/git/gitweb.cgi?p=ufoai/ufoai;a=blob;f=contrib/scripts/ui/examples/unittest_bar.ufo
Anyway, i dont check it for a will.
DarkRain:
TBH I hadn't checked it recently either -- when I said "the last time I tried, I didn't imply it was recently, the error message was helpful at that time (I just went for a standard bar)
I only meant to note that the game not going past startup could be due to an script typo or there could actually be parsing bugs.
Anyways a quick test (with althud.ufo) shows it still doesn't work:
--- Code: -------------- parse scripts ----------
52 script files
48 ui script files
UI_ParseNodeProperties: unknown property "orientation", node ignored (node althud.floor.health0)
UI_ParseNodeBody: node with bad body ignored (node "althud.floor.health0")
UI_ParseWindow: window "althud" has a bad body
FS_RemoveFile: remove /home/eliab/.ufoai/2.4-dev/base/keys.cfg
There are still 1 opened files
]./ufo[0x8189b80]
./ufo[0x818915d]
./ufo[0x8129fab]
./ufo[0x80f65c7]
./ufo[0x805dd44]
./ufo[0x8140743]
./ufo[0x812b4e7]
./ufo[0x8188397]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x670bd6]
./ufo[0x804e191]
Error: Shutdown
--- End code ---
(that last part does *look* like a backtrace btw)
using direction instead of orientation:
--- Code: -------------- parse scripts ----------
52 script files
48 ui script files
UI_ParseProperty: "cl" is not a well formed node name (it must be quoted, uppercase const, a number, or prefixed with '*')
UI_ParseNodeProperties: Problem with parsing of node property 'althud.floor.health0@direction'. See upper
UI_ParseNodeBody: node with bad body ignored (node "althud.floor.health0")
UI_ParseWindow: window "althud" has a bad body
FS_RemoveFile: remove /home/eliab/.ufoai/2.4-dev/base/keys.cfg
There are still 1 opened files
]./ufo[0x8189b80]
./ufo[0x818915d]
./ufo[0x8129fab]
./ufo[0x80f65c7]
./ufo[0x805dd44]
./ufo[0x8140743]
./ufo[0x812b4e7]
./ufo[0x8188397]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x2f3bd6]
./ufo[0x804e191]
Error: Shutdown
--- End code ---
and using direction ALING_CL:
--- Code: -------------- parse scripts ----------
52 script files
48 ui script files
UI_ParseProperty: Invalid value for property 'direction': Size mismatch: given size: 1, should be: 4. (type: 3)
UI_ParseNodeProperties: Problem with parsing of node property 'althud.floor.health0@direction'. See upper
UI_ParseNodeBody: node with bad body ignored (node "althud.floor.health0")
UI_ParseWindow: window "althud" has a bad body
FS_RemoveFile: remove /home/eliab/.ufoai/2.4-dev/base/keys.cfg
There are still 1 opened files
]./ufo[0x8189b80]
./ufo[0x818915d]
./ufo[0x8129fab]
./ufo[0x80f65c7]
./ufo[0x805dd44]
./ufo[0x8140743]
./ufo[0x812b4e7]
./ufo[0x8188397]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x2f7bd6]
./ufo[0x804e191]
Error: Shutdown
--- End code ---
which was the error I got at that time
anyway got to go
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version