Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
SupremeBioVizier

Replacing image with mapinfo lump

Question

I have used dehacked to write a message after map06

I would like to change the texture background the message is displayed on, how should I properly go about it?

I would like to use the image I have for the CREDIT screen

I tried writing script for the first time...tried various ways trying to make it work, could someone please show me the correct way to write the info lump?

Or any other method of changing the screen since I already have a dehacked file in place.

Thanks.

IMG_20230927_132013035_HDR.jpg

Share this post


Link to post

24 answers to this question

Recommended Posts

  • 0

If you just want to replace the intermission text, you can do that in a simpler way with mapinfo. You already have a cluster defined, so it's really simple.

 

put

ExitText = "<message>"

in your definition for MAP06

 

When the game shifts from cluster 5 to 6 (exiting cluster 5), it'll display whatever the message in ExitText is.

 

If you want to change the background image, you likely need something other than a flat, which are limited to 64x64 units and will tile to fill the screen.

Share this post


Link to post
  • 0
9 minutes ago, Stabbey said:

If you just want to replace the intermission text, you can do that in a simpler way with mapinfo. You already have a cluster defined, so it's really simple.

 

put

ExitText = "<message>"

in your definition for MAP06

 

When the game shifts from cluster 5 to 6 (exiting cluster 5), it'll display whatever the message in ExitText is.

 

If you want to change the background image, you likely need something other than a flat, which are limited to 64x64 units and will tile to fill the screen.

I just want to change the background image, instead of "flat =" what should I write in cluster for the image to show?

Share this post


Link to post
  • 0

It should just be

Pic = "CREDIT"

I don't know what kind of restrictions are on the file format and dimensions, if any.

Share this post


Link to post
  • 0

I wrote pic = "CREDIT"  

nothing

I wrote then, exitpic = "CREDIT" 

and the end screen to map 06 was changed but not the message background while entering map07

So I just got to figure out the correct picture command it seems, ____pic =

Share this post


Link to post
  • 0

Im not doing something right...

I'm using SLADE....and have been trying for laughable hours now...

If someone could just fill in the blanks that would be great

 

Goal: to change background image when the message appears while entering map07

 

{

}

Feel like I've exhausted all I can muster today to make it right.

Share this post


Link to post
  • 0
13 minutes ago, Gregor said:

Paste your input of the umapinfo file for map06 here.

At first I had the lump in a mapinfo lump instead of umapinfo, now I'm not sure what needs to be at all.

IMG_20230927_173447065.jpg

Share this post


Link to post
  • 0

Ok. I don't get why you suddenly changed format to a Doom 1 map and deleted everything. I don't think it makes much sense trying to explain this here. You need to look at an actual example. Open any wad in SLADE that uses an umapinfo lump and check out how they do it. That's the easiest way to understand. Also use the wiki article for reference. It makes things pretty clear.

Share this post


Link to post
  • 0
12 minutes ago, nocisum said:

At first I had the lump in a mapinfo lump instead of umapinfo, now I'm not sure what needs to be at all.

It depends on what format you're targeting. I saw you mention DeHackEd in the op so I mistakenly assumed you were using UMAPINFO, I see now you were actually targetting zdoom. That's not really my wheelhouse but here is the relevant zdoom page for intermission definitions in MAPINFO

Share this post


Link to post
  • 0
1 hour ago, LoatharMDPhD said:

did you start with{ include UMAPINFO  }?

yes, for sure & at this point ive tried so many times to figure out what im doing wrong im exhausted from it, something so ridiculous as just simply replacing an image has taken four hours with no success....ive even gone into other wads and looked at what they did with mapinfo, hard to let it go, must be done..

 

map MAP07 lookup "dead simple"
{
    titlepatch = "CWILV06"
    next = "MAP08"
    secretnext = "MAP08"
    sky1 = "SKY1"
    music = "D_THE_DA"
    par = 120
    interbackdrop = "titlepic"
    }

Edited by nocisum

Share this post


Link to post
  • 0
12 minutes ago, nocisum said:

yes, for sure & at this point ive tried so many times to figure out what im doing wrong im exhausted from it, something so ridiculous as just simply replacing an image has taken four hours with no success....ive even gone into other wads and looked at what they did with mapinfo, hard to let it go, must be done..

 

map MAP07 lookup "dead simple"
{
    titlepatch = "CWILV06"
    next = "MAP08"
    secretnext = "MAP08"
    sky1 = "SKY1"
    music = "D_THE_DA"
    par = 120
    interbackdrop = "titlepic"
    }

are your command case sensitive?

Share this post


Link to post
  • 0

lol im not sure what case sensitive means, ALLL I want is the image flat altered to be the image im already using for either title pic or credit...I also included the value on the sky like you replied...nada, thanks for yalls help though...me no smart or slade is cursed lol

I was thinking that maybe because I already have a dehacked file in the wad that is throwing off my mapinfo lump, because the dehacked file is mainly for the intermission text on the background im trying to change....be so much easier if I could use dehacked to switch out the background image.

Share this post


Link to post
  • 0
12 hours ago, nocisum said:

lol im not sure what case sensitive means, ALLL I want is the image flat altered to be the image im already using for either title pic or credit...

 

 

Correction to your terms. Flats are 64x64 pixels - that's about half the size or so of the avatar beside this post.

I don't think your title or credit pic is going to be that small.

 

EDIT: Why on earth is your WAD 132 MB? Is it full of audio files, and/or did you dump a complete texture pack (or packs) inside it?

 

Also, if you don't know what you're doing, trying random things is usually a poor life choice. Trying random things without backing up your original file is an extremely poor life choice.

Edited by Stabbey

Share this post


Link to post
  • 0
1 hour ago, Stabbey said:

 

Correction to your terms. Flats are 64x64 pixels - that's about half the size or so of the avatar beside this post.

I don't think your title or credit pic is going to be that small.

 

EDIT: Why on earth is your WAD 132 MB? Is it full of audio files, and/or did you dump a complete texture pack (or packs) inside it?

 

Also, if you don't know what you're doing, trying random things is usually a poor life choice. Trying random things without backing up your original file is an extremely poor life choice.

gotchya, yeah...its backed up and yeah the credit pic being too big was probably the issue, the file is big because it kicks ass.. im just going to forget about it and make some ansi endtext bullshit art today....random choices are the best hell.

Share this post


Link to post
  • 0
29 minutes ago, nocisum said:

gotchya, yeah...its backed up and yeah the credit pic being too big was probably the issue, the file is big because it kicks ass.. im just going to forget about it and make some ansi endtext bullshit art today....random choices are the best hell.

 

The page on UMAPINFO says that  interbackdrop will use a patch (standard texture) if it's not a flat.

 

"Backdrop to be used for intertext and intertextsecret. If it does not specify a valid flat, it will be drawn as a patch instead. If not specified the FLOOR4_8 flat will be used, regardless of which map it is used on."

 

If you have titlepic in your WAD, in Doom format, it should work.

Share this post


Link to post
  • 0
5 hours ago, Stabbey said:

 

The page on UMAPINFO says that  interbackdrop will use a patch (standard texture) if it's not a flat.

 

"Backdrop to be used for intertext and intertextsecret. If it does not specify a valid flat, it will be drawn as a patch instead. If not specified the FLOOR4_8 flat will be used, regardless of which map it is used on."

 

If you have titlepic in your WAD, in Doom format, it should work.

I am going to give this another shot in a few here, thank you tons for direction. I can't believe how long I committed to trying yesterday when It was probably something so simple and overlooked by me, the wad has all new sprites and music, sounds ect. So all resources are worth the big file, me making it smaller and figuring some other things to make it fine combed is for another thread lol trying to get this done a bit before November as I've already been on it for two months about.

Share this post


Link to post
  • 0
6 hours ago, nocisum said:

the file is big because it kicks ass..

// elegant, concise, lightweight code that accomplishes the goal... when did that ideal die in the hearts and hands of programmers? Good things come in small packages... giggity..

Share this post


Link to post
  • 0

yeah I'm just going to leave script info lump stuff to the "hands of programmers" for I am obviously not one.

I just spent another hour trying to figure out why todays problem is when loading doom2 it does not like any key given for an interbackdrop/pic for message screen.

yesterday I didn't have this problem, and I really haven't seen any clearly defined explanation other than go to this link(mapinfowiki) over all the threads I've visited, nor examples so very odd.

it rejected the keys,

flat

pic

interbackdrop

I think I tried two more just experimenting, and the only time anything happened was, interpic = "titlepic"

I can basically hack the game in every which direction, but this message screen will just be the original metal flat it seems. 

Thanks again all.

Share this post


Link to post
  • 0

Are you using MAPINFO or ZMAPINFO instead of UMAPINFO? There are different formats which have different syntaxes for keys. That would likely be what the problem is. I see in your screen photographs that your top one is ZDoom MAPINFO (MAPINFO with special options exclusively for ZDoom based ports) for a Doom 2 map and your bottom one is UMAPINFO for a Doom 1 map.

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×