The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
October 03, 2024, 09:53:12 pm
Home Help Search Login Register
News: Celebrating 30 years of Star Control 2 - The Ur-Quan Masters

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  General UQM Discussion (Moderator: Death 999)
| | |-+  Modding, looking for ways to steal other ships' graphics
« previous next »
Pages: [1] Print
Author Topic: Modding, looking for ways to steal other ships' graphics  (Read 1539 times)
Elvish Pillager
Enlightened
*****
Offline Offline

Posts: 625



View Profile
Modding, looking for ways to steal other ships' graphics
« on: February 25, 2007, 08:17:10 pm »

Frequently while writing my mod, I have had the idea of (or had the idea suggested to me of) giving one ship weapons from another ship, e.g. "Let's take the Supox Blade, but give it Fusion Blasts like the Ur-Quan Dreadnought!" (or whatever.)

In the code, graphics seem tied to the particular ship. It's relatively simple to use the opponent's graphics for your weapons, but I'm looking for a way to use graphics from an arbitrary ship that isn't necessarily in the arena, and hopefully without using any egregious hacks either.

Would people who know the code better care to lend ideas on how this can or can't be done?
Logged

My team of four Androsynth and three Chmmr is the most unfair team ever!
My mod
Elvish Pillager
Enlightened
*****
Offline Offline

Posts: 625



View Profile
Re: Modding, looking for ways to steal other ships' graphics
« Reply #1 on: February 25, 2007, 09:28:07 pm »

UQM doesn't use the .png format.

Also, each ship only has a limited number of frames (unless I'm wrong?) so, supposing I wanted to make a ship that used a lot of different graphics, I still wouldn't be able to.
Logged

My team of four Androsynth and three Chmmr is the most unfair team ever!
My mod
Novus
Enlightened
*****
Offline Offline

Gender: Male
Posts: 1938


Fot or not?


View Profile
Re: Modding, looking for ways to steal other ships' graphics
« Reply #2 on: February 25, 2007, 10:11:05 pm »

UQM doesn't use the .png format.
Oh yes it does. For example content/urquan/urquan.big.*.png contains the maximum zoom images for the Kzer-Za fusion blasts and content/urquan/urquan.big the corresponding transparency, size and hotspot information (the content package is a big ZIP file, if you haven't noticed).

Quote
Also, each ship only has a limited number of frames (unless I'm wrong?) so, supposing I wanted to make a ship that used a lot of different graphics, I still wouldn't be able to.
Changing the amount of frames for a graphical object could be difficult. As long as you're just swapping non-animated objects around, you shouldn't have any problems, though.
Logged

RTFM = Read the fine manual.
RTTFAQ = Read the Ur-Quan Masters Technical FAQ.
Elvish Pillager
Enlightened
*****
Offline Offline

Posts: 625



View Profile
Re: Modding, looking for ways to steal other ships' graphics
« Reply #3 on: February 25, 2007, 10:21:36 pm »

UQM doesn't use the .png format.
Oh yes it does. For example content/urquan/urquan.big.*.png contains the maximum zoom images for the Kzer-Za fusion blasts and content/urquan/urquan.big the corresponding transparency, size and hotspot information (the content package is a big ZIP file, if you haven't noticed).
Huh, okay. It's still not a simple matter of replacing them...

I'm looking more for a solution in the code, here. From what I know, that seems more practical.
Logged

My team of four Androsynth and three Chmmr is the most unfair team ever!
My mod
Elvish Pillager
Enlightened
*****
Offline Offline

Posts: 625



View Profile
Re: Modding, looking for ways to steal other ships' graphics
« Reply #4 on: February 26, 2007, 11:37:48 pm »

Thanks to a good deal of help from fOSSil on #uqm-arena, my problems are now solved. Grin
Logged

My team of four Androsynth and three Chmmr is the most unfair team ever!
My mod
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!