The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
December 06, 2024, 11:24:29 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
| |-+  Technical Issues (Moderator: Death 999)
| | |-+  Minor fixes. pstarmap.c and spathi.c
« previous next »
Pages: [1] Print
Author Topic: Minor fixes. pstarmap.c and spathi.c  (Read 2891 times)
nemo
Zebranky food
*
Offline Offline

Posts: 7



View Profile
Minor fixes. pstarmap.c and spathi.c
« on: December 13, 2002, 10:17:29 am »

I sent this to the person who wrote HACKING, but that occurred to me it was probably the wrong forum, so reproducing here.

The documentation notes that clipping is bounding box at the moment so Spathi butt missiles are likely to hit you if not aimed precisely.
I found increasing their distance from the rear of the spathi ship in the spathi.c by about 50% made them much more usable, if a little less realistic in their magical appearance away from the ship.

Btw, HACKING lists a mailing list.  Is there by any chance an IRC channel?  Maybe on OpenProjects.net?

In src/sc2code/planets/pstarmap.c
493c493,494
<                       && GLOBAL (autopilot.y) != ~0)
---
>                       && GLOBAL (autopilot.y) != ~0
>                       && LOBYTE (GLOBAL (CurrentActivity)) != IN_BATTLE)

Otherwise the auto pilot banner flickers annoyingly and distractingly through a battle if it was engaged when an encounter occurred.


Well, just got this, so nothing much more to contribute.  Mmmm StarControl2, I loved thee so...

Oh. Wait, maybe something more - planet transparency is incorrect for the "encounter in space"  black square around the planet instead of space background.  Will look at that after I play some more.  Spathi are so dang cute Smiley
Logged
Parker
*Many bubbles*
***
Offline Offline

Posts: 122



View Profile
Re: Minor fixes. pstarmap.c and spathi.c
« Reply #1 on: December 13, 2002, 10:22:47 am »

Bounding box has already been eliminated in CVS in favor of pixel-perfect collision detection.  As for the IRC channel, it is #sc2 at irc.freenode.net (formerly openprojects.net).
Logged
nemo
Zebranky food
*
Offline Offline

Posts: 7



View Profile
Re: Minor fixes. pstarmap.c and spathi.c
« Reply #2 on: December 13, 2002, 10:27:27 am »

Sweeet!
Will have to grab the CVS version.  That way I can avoid redundant posts.
And thanks for the IRC channel.
now if only I could snag the nick "nemo" on freenode :-/

Logged
nemo
Zebranky food
*
Offline Offline

Posts: 7



View Profile
Re: Minor fixes. pstarmap.c and spathi.c
« Reply #3 on: December 13, 2002, 10:48:55 am »

Sigh.  Dunno.  must be on crack tonight.  Thought the banner disappeared in that one battle sequence, but then it appeared again.
Oh well, back to drawing board.
Logged
nemo
Zebranky food
*
Offline Offline

Posts: 7



View Profile
Re: Minor fixes. pstarmap.c and spathi.c
« Reply #4 on: December 13, 2002, 01:15:05 pm »

Yes!
Ok. had to fire up debugger on the damn thing, but this is the correct location
In clock.c
136c136,137
<                                               && GLOBAL_SIS (CrewEnlisted) != (COUNT)~0)
---
>                                               && GLOBAL_SIS (CrewEnlisted) != (COUNT)~0
>                                               && LOBYTE (GLOBAL (CurrentActivity)) != IN_ENCOUNTER)
Logged
nemo
Zebranky food
*
Offline Offline

Posts: 7



View Profile
Re: Minor fixes. pstarmap.c and spathi.c
« Reply #5 on: December 13, 2002, 01:31:09 pm »

Also, modified pngs to correctly display degree sign (for content/lbm)
http://m8y.org/sc2/
Logged
Mika
Core Team
*Many bubbles*
*****
Offline Offline

Gender: Male
Posts: 121



View Profile WWW
Re: Minor fixes. pstarmap.c and spathi.c
« Reply #6 on: December 13, 2002, 02:30:59 pm »

Autopilot problem has also been already fixed in CVS. Read http://sc2.sourceforge.net/contributing.html, don't post patches here in the future and use latest CVS version or all will be rejected.
Logged
nemo
Zebranky food
*
Offline Offline

Posts: 7



View Profile
Re: Minor fixes. pstarmap.c and spathi.c
« Reply #7 on: December 13, 2002, 10:38:43 pm »

Sorry about that one too then.  I had thought since Parker had only mentioned the first one was fixed, that the second one was still in there.

Well, that was a couple of hours wasted last night (well, familiarizing with code is never wasted...)

will use CVS in future.
Logged
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!