Orginal alleg main menu mdl file doesnt work
-
MagisterXF94
- Posts: 1935
- Joined: Fri Aug 23, 2013 9:46 am
- Location: Trieste, Italy
I wanted to use the original main menu image and modify it.
So I asked stormsurge to rip it off the orginal cd and send it to me.
I got it. But when I put it into the artwork folder, Allegiance crashes.
the File it's called "introscreen.mdl" straight from the original cd.
Any thoughts on the crashing?
So I asked stormsurge to rip it off the orginal cd and send it to me.
I got it. But when I put it into the artwork folder, Allegiance crashes.
the File it's called "introscreen.mdl" straight from the original cd.
Any thoughts on the crashing?
QUOTE ^cashto@Elem (all): yeah, i imagine if you're rusty, you could build op short for no reason, build a naked ref, then go two techpaths even though your mining is by all objective standards $#@!ed[/quote]


-
MagisterXF94
- Posts: 1935
- Joined: Fri Aug 23, 2013 9:46 am
- Location: Trieste, Italy
So to change the background I need the mainbkgndbmp.mdl file?KGJV wrote:QUOTE (KGJV @ Sep 14 2014, 02:23 AM) introscreen.mdl is the MDL definition for the intro screen (a text file defining the layout and elements in the screen). Over the years features were added/removed/changed so no surprise it crashes.
The main background image itself is mainbkgndbmp.mdl (it's referenced in introscreen.mdl).
QUOTE ^cashto@Elem (all): yeah, i imagine if you're rusty, you could build op short for no reason, build a naked ref, then go two techpaths even though your mining is by all objective standards $#@!ed[/quote]


yeah it's an image. either generate a new one (with mdlc or any suitable tool ) or manually create a text mdl to load a .png (there is probably a guide or a post somewhere in here).
Last edited by KGJV on Sun Sep 14, 2014 12:40 am, edited 1 time in total.
-
MagisterXF94
- Posts: 1935
- Joined: Fri Aug 23, 2013 9:46 am
- Location: Trieste, Italy
Great MDlC doesnt work for me. ):KGJV wrote:QUOTE (KGJV @ Sep 14 2014, 02:39 AM) yeah it's an image. either generate a new one (with mdlc or any suitable tool ) or manually create a text mdl to load a .png (there is probably a guide or a post somewhere in here).
QUOTE ^cashto@Elem (all): yeah, i imagine if you're rusty, you could build op short for no reason, build a naked ref, then go two techpaths even though your mining is by all objective standards $#@!ed[/quote]


then use a text mdl:
backup your actual mainbkgndbmp.mdl
create a text file with your favorite text editor and put this in it:
save this file as "mainbkgndbmp.mdl"
the "yourmainbkgnd.png" can be any name as long as it matchs your new image file (can be .bmp or .png). you can place it artwork or in a subdir :
IIRC , it's been a while.
backup your actual mainbkgndbmp.mdl
create a text file with your favorite text editor and put this in it:
Code: Select all
use "model";
mainbkgndbmp = ImportImageFromFile("yourmainbkgnd.png", false);the "yourmainbkgnd.png" can be any name as long as it matchs your new image file (can be .bmp or .png). you can place it artwork or in a subdir :
Code: Select all
use "model";
mainbkgndbmp = ImportImageFromFile("mymod/yourmainbkgnd.png", false);-
MagisterXF94
- Posts: 1935
- Joined: Fri Aug 23, 2013 9:46 am
- Location: Trieste, Italy
Ok i've put the other background in and it works.
Only that the actual buttons of the new background are not clickable; (I assume i need to modify introscreen.mdl)?
Do I use the same text as before?
Only that the actual buttons of the new background are not clickable; (I assume i need to modify introscreen.mdl)?
Do I use the same text as before?
QUOTE ^cashto@Elem (all): yeah, i imagine if you're rusty, you could build op short for no reason, build a naked ref, then go two techpaths even though your mining is by all objective standards $#@!ed[/quote]


in reply to your PMs: if you need to create other files do the same.
Put this text:
use "model";
namebmp = ImportImageFromFile("whatever.png", false);
in the namebmp.mdl file.
what matters is that 'name' is the same (inside the text file and name of the text file).
so for instance, for zonepublicscreenbmp.mdl use:
the background images for:
zonepublicscreen is zonepublicscreenbmp.mdl
introscreen is mainbkgnd2bmp.mdl
gamesscreen is gamescreen.png (note: this is directly a .png).
yes the buttons positions are defined in each screen mdl (so for introscreen.mdl, search the line "screen =", you'll find the background then the buttons positions).
Put this text:
use "model";
namebmp = ImportImageFromFile("whatever.png", false);
in the namebmp.mdl file.
what matters is that 'name' is the same (inside the text file and name of the text file).
so for instance, for zonepublicscreenbmp.mdl use:
Code: Select all
use "model";
zonepublicscreenbmp = ImportImageFromFile("whateveryouwant.png", false);zonepublicscreen is zonepublicscreenbmp.mdl
introscreen is mainbkgnd2bmp.mdl
gamesscreen is gamescreen.png (note: this is directly a .png).
yes the buttons positions are defined in each screen mdl (so for introscreen.mdl, search the line "screen =", you'll find the background then the buttons positions).
Last edited by KGJV on Sun Sep 14, 2014 10:33 am, edited 1 time in total.
-
MagisterXF94
- Posts: 1935
- Joined: Fri Aug 23, 2013 9:46 am
- Location: Trieste, Italy
Thank you very much!KGJV wrote:QUOTE (KGJV @ Sep 14 2014, 12:32 PM) in reply to your PMs: if you need to create other files do the same.
Put this text:
use "model";
namebmp = ImportImageFromFile("whatever.png", false);
in the namebmp.mdl file.
what matters is that 'name' is the same (inside the text file and name of the text file).
so for instance, for zonepublicscreenbmp.mdl use:
the background images for:Code: Select all
use "model"; zonepublicscreenbmp = ImportImageFromFile("whateveryouwant.png", false);
zonepublicscreen is zonepublicscreenbmp.mdl
introscreen is mainbkgnd2bmp.mdl
gamesscreen is gamescreen.png (note: this is directly a .png).
yes the buttons positions are defined in each screen mdl (so for introscreen.mdl, search the line "screen =", you'll find the background then the buttons positions).
QUOTE ^cashto@Elem (all): yeah, i imagine if you're rusty, you could build op short for no reason, build a naked ref, then go two techpaths even though your mining is by all objective standards $#@!ed[/quote]


-
MagisterXF94
- Posts: 1935
- Joined: Fri Aug 23, 2013 9:46 am
- Location: Trieste, Italy
Crashes on me saying that it cant open "zonepublicscreen.bmp.mdl"...
The text mdl is correct.
Why doesn't it work?
The text mdl is correct.
Why doesn't it work?
QUOTE ^cashto@Elem (all): yeah, i imagine if you're rusty, you could build op short for no reason, build a naked ref, then go two techpaths even though your mining is by all objective standards $#@!ed[/quote]


