lmexias

Member
ServUO Version
Publish 57
Ultima Expansion
High Seas
Good morning everyone!

I'm trying to create a new gump for the Server but I'm having trouble adding a custom background to it.

I imported the image through the Gumps area in UOFiddler, both the background and the buttons. The buttons appear normally when I call Gump but the background doesn't appear.

When I try to add it through Gump Studio, I get an "error" message: "Invalid property value" - "Object reference not set to an instance of an object." I tried to find some information about this on the forum but I was unsuccessful.

Could someone tell me the process I should follow to insert this image correctly?

Thank you for your attention everyone.
 
In Gump Studio, when I click on the option to add background and then type the ID of the image that I sent via UOFiddler, it displays this "error": "Invalid property value" - "Object reference not set to an instance of an object." I tried to find a tutorial about this but was unsuccessful.

When I click on the Image option, I can add the image without any problems.

Thank you for your attention @AsYlum .

View attachment gumpbg.png
 
I had an issue once where UOFiddler output a .mul file that seemed perfectly ok. But I forgot to remove the original .uop file so that is what the game was loading and it seemed like I was never able to add anything via fiddler. Until I deleted the .uop file then it worked great
 
@Rutibex So after reading your answer I recreated everything and the error continues. In Gump Studio when I add a Background and try to change the GumpID to the image I want it gives an error, when I add an Image and put the GumpID I want it works perfectly.

I don't know how to proceed.
img02.jpg
 
Since it is a single image just use Image as you did then build everything over the top of it. The Image should be the first thing in your gump code. In Gump Studio just send it to back position.
 
You are using wrong type :) use just image as Tecmo said :) Background is complex type consisting of multiple tiles.

gump can have "blank" background :D only difficulty is you then have to interact with its other elements :)
 
Good morning everyone!

I hadn't thought about the positioning issue within Gump Studio, based on what was said I thought of another solution that I will also be testing, which is to create a smaller Gump and place the image over it to see if it works.

@Tecmo @AsYlum Thank you for your attention, I will test what was said and come back with a response.
 
Last edited:
If you are wanting the above image to be your background you can just use it as an image. There doesn't have to be an actual "gump" background.

When you use "gump" it uses, I think it's 8 or 9 images to create a background that can be resized. See image example in Asylum's post: Help with gump parts.

Just think of that image as the background
 
Also in the script, what is written first is the first layer, any additional element is added on top!

So it would be Background(x,y,id); then next line, Image(x,y,id,hue); and keep adding to build up your gump!

If you don't want to use the typical backgrounds and just have a image you can, as well as use other elements like AlphaRegion which is a non visible area to outline an area of the gump!

Take a look at a few gump scripts, gump studio is just a visual tool to build the script, in the end, the script is all that matters!
 
Good morning!

I hope you are all well.

I really couldn't add it as a background, so I did as you instructed and it worked, it met my needs perfectly.

@AsYlum, @Tecmo and @Wilson thank you all for your help, without you I would still be looking for a way to add that image as a background.

Today I will finish Gump and I will post it here.

Have a great day and a great weekend.
 

Active Shards

Donations

Total amount
$0.00
Goal
$500.00
Back