Orginal alleg main menu mdl file doesnt work

Discussion area for user-created Allegiance models, textures, voicechats, music, and other ingame content.
Post Reply
MagisterXF94
Posts: 1935
Joined: Fri Aug 23, 2013 9:46 am
Location: Trieste, Italy

Post by MagisterXF94 »

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?
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]
Image
KGJV
Posts: 1474
Joined: Tue Jul 01, 2003 7:00 am
Location: Transilvania

Post by KGJV »

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).
Image
MagisterXF94
Posts: 1935
Joined: Fri Aug 23, 2013 9:46 am
Location: Trieste, Italy

Post by MagisterXF94 »

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).
So to change the background I need the mainbkgndbmp.mdl file?
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]
Image
KGJV
Posts: 1474
Joined: Tue Jul 01, 2003 7:00 am
Location: Transilvania

Post by KGJV »

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.
Image
MagisterXF94
Posts: 1935
Joined: Fri Aug 23, 2013 9:46 am
Location: Trieste, Italy

Post by MagisterXF94 »

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).
Great MDlC doesnt work for me. ):
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]
Image
KGJV
Posts: 1474
Joined: Tue Jul 01, 2003 7:00 am
Location: Transilvania

Post by KGJV »

then use a text mdl:

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);
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 :

Code: Select all

use "model"; 
mainbkgndbmp = ImportImageFromFile("mymod/yourmainbkgnd.png", false);
IIRC , it's been a while.
Image
MagisterXF94
Posts: 1935
Joined: Fri Aug 23, 2013 9:46 am
Location: Trieste, Italy

Post by MagisterXF94 »

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?
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]
Image
KGJV
Posts: 1474
Joined: Tue Jul 01, 2003 7:00 am
Location: Transilvania

Post by KGJV »

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:

Code: Select all

use "model"; 
zonepublicscreenbmp = ImportImageFromFile("whateveryouwant.png", false);
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).
Last edited by KGJV on Sun Sep 14, 2014 10:33 am, edited 1 time in total.
Image
MagisterXF94
Posts: 1935
Joined: Fri Aug 23, 2013 9:46 am
Location: Trieste, Italy

Post by MagisterXF94 »

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:

Code: Select all

use "model"; 
zonepublicscreenbmp = ImportImageFromFile("whateveryouwant.png", false);
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).
Thank you very much! :)
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]
Image
MagisterXF94
Posts: 1935
Joined: Fri Aug 23, 2013 9:46 am
Location: Trieste, Italy

Post by MagisterXF94 »

Crashes on me saying that it cant open "zonepublicscreen.bmp.mdl"...
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]
Image
Post Reply