[EVN] Free Space Oddity

Here's a new one. I set a shďp to have 8 tons of free space. I then give it a complement of 8 torpedoes, each taking up 1 ton. When I obtain the ship, it has the eight 1-ton torpedoes and 15 tons of free space.

Oh, yes, of cou--ajeckamongaHUH?!?

So what's going on here and how do I make sure my ship only has 8 tons of free space?

------------------
Starfleet Adventures: A Star Trek TC for EVN (url="http://"http://www.ev-nova.net/forums/viewtopic.php?t=145") Discussion Board (/url)
Starfleet Adventures (url="http://"http://www.ev-nova.net/forums/viewtopic.php?t=71")Progress Log(/url)
denki's Starfleet Adventures (url="http://"http://www.geocities.com/starfleet_adventures/")FAQ page(/url)
It is better to feed the goat than it is today.

Quote

Oh, yes, of cou--ajeckamongaHUH?!?

Yeah, I think that pretty much sums it up.

------------------
When viewing a Terrapin for the first time, I realized that anything flies-if you throw it hard enough!

Have you looked at the ship and outf data using ResEdit with the non-NovaTools templates? Once in a while this uncovers nasty secrets that GUI editors don't want you to know -- at least, that's what we found with the CompGovt field entries in the EVO port's misn resources....

You know, I actually clicked on (url="http://"http://www.AmbrosiaSW.com/cgi-bin/ubb/postdisplay.cgi?forum=Forum9&topic;=005183")EVN Free Space Oddity(/url) thinking that I'd get access to something along the lines of a new plug, something both "free" and "odd." :rolleyes: That'll learn me.

"Free and odd" will have to wait for the "silly sprite" contest if it happens, I guess. 😄

Edited because I am a careless writer. No more, no less.
------------------
(url="http://"http://home.comcast.net/~drtrowel/")Dr. Trowel's E.S.W.P.(/url) -- Featuring Cold Fusion graphics for EVN Override and two EVN:O bug fixes.
Very Good Stuff: (url="http://"http://www.evula.com/escape_velocity/")EVula(/url) (url="http://"http://w00tware.ev-nova.net/")NovaTools(/url) (url="http://"http://www.evula.org/infernostudios/search.html")EVPlugSearcher(/url) Play FAQs: (url="http://"http://ev-nova.net/forums/viewtopic.php?t=2832&sid;=43627ead61761e7f19060b00c14c739c")N(/url) (url="http://"http://www.AmbrosiaSW.com/cgi-bin/ubb/forumdisplay.cgi?action=topics&forum;=EV+Nova+FAQs&number;=30&DaysPrune;=20&LastLogin;=")N(/url) (url="http://"http://www.AmbrosiaSW.com/cgi-bin/ubb/forumdisplay.cgi?action=topics&forum;=EV+Override+FAQs&number;=53&DaysPrune;=20&LastLogin;=")O(/url) (url="http://"http://www.AmbrosiaSW.com/cgi-bin/ubb/forumdisplay.cgi?action=topics&forum;=Escape+Velocity+FAQs&number;=28&DaysPrune;=20&LastLogin;=")C(/url) Dev FAQs: (url="http://"http://www.AmbrosiaSW.com/cgi-bin/ubb/forumdisplay.cgi?action=topics&forum;=EV+Plug-in+Developer+FAQs&number;=29&DaysPrune;=20&LastLogin;=")A(/url) (url="http://"http://www.ambrosiasw.com/cgi-bin/ubb/forumdisplay.cgi?action=topics&number;=31&SUBMIT;=Go")B(/url)
Interests: The Good, The Bad, and The Loopy.

(This message has been edited by Dr. Trowel (edited 03-09-2004).)

(This message has been edited by Dr. Trowel (edited 03-09-2004).)

Do you have any crons replacing stuff in the background, that could be the culprits? I've had some strange bugs caused by old unnecessary crons...

But hmmm.... 8 + 8 != 15, even in the best case. How are you "aquireing" those torpedos? Are they just listed as ammo for the weapon? Are they default outfits, or are you buying them after the fact? Or are they being Gxxx'd? That would be a good start, methinks, to solving this puzzle.

------------------
~Charlie
Sephil Saga Homepage: (url="http://"http://www.cwssoftware.com")www.cwssoftware.com(/url)

Quote

Originally posted by UncleTwitchy:
**Here's a new one. I set a shďp to have 8 tons of free space. I then give it a complement of 8 torpedoes, each taking up 1 ton. When I obtain the ship, it has the eight 1-ton torpedoes and 15 tons of free space.

Oh, yes, of cou--ajeckamongaHUH?!?

So what's going on here and how do I make sure my ship only has 8 tons of free space?

**

I think that you have angered the plug-in god. You must sacrifice at least twenty Nova pilots before it will work. That's what I had to do, well, that and ask for help.
But don't give up. Send me a copy of the plug-in, I'll try to look at the problem. You can just use the email link by my profile, just as long as it's less than 10MB.
Maybe Nova is anal-retentive and doesn't like weird numbers like 8, so it rounded to the nearest...15?

(edit) Okay fine, you could just send the torpedo weapon, outfit, and ship resources. No graphics, I'll stick some in so Nova doesn't crash.

------------------
Support USA Patriot Act let real Americans take away our rights before those darn foreigners can try.
Before you do what you are about to do, think about why you are about to do what you are about to do.
All the problems of the world can be solved by good parents and good water.

(This message has been edited by Klepsacovic (edited 03-09-2004).)

Quote

Originally posted by Klepsacovic:
**

Quote

Originally posted by UncleTwitchy:
**Here's a new one. I set a shďp to have 8 tons of free space. I then give it a complement of 8 torpedoes, each taking up 1 ton. When I obtain the ship, it has the eight 1-ton torpedoes and 15 tons of free space.

Oh, yes, of cou--ajeckamongaHUH?!?

So what's going on here and how do I make sure my ship only has 8 tons of free space?

**

I think that you have angered the plug-in god. You must sacrifice at least twenty Nova pilots before it will work. That's what I had to do, well, that and ask for help.
But don't give up. Send me a copy of the plug-in, I'll try to look at the problem. You can just use the email link by my profile, just as long as it's less than 10MB.
Maybe Nova is anal-retentive and doesn't like weird numbers like 8, so it rounded to the nearest...15?

**

Chances are that this is from the latest build of SFA. I doubt UT is inclined to release any version of it.

------------------
(url="http://"http://www.zhouj.net/days/")Days of Glory(/url), Upcoming TC for EV: Nova

I can see what is happening:
8 tons of space + 8*(1 ton torps) - 1 ton (8 torps) = 15 tons

So the real question is why does Nova interpret 8 1 ton torps differently in the same calculation?

------------------
"If you can't feel the Force, you're not pushing it." -Prof. Li on the "Force"
Got g?
Ignorance killed the cat. Curiosity was framed.
"We're sending a complicated system into an unknown environment at very high speed. I feel calm. I feel ready. I can only conclude it's because I don't hace a full grasp of the situation." - Mark Adler

Are you sure you didn't overlook something such as a default outfit?

I know the free space is handled this way: free space of the basic ship+space taken by the default outfits and weapons-space taken by the current outfit and weapons (this is necessary because the pilot files does not store the freespace, just the ID of your ship, and those of your weapons and outfits, so should you make a plug that modifies the default freespace of the ship you own, but also the default outfits and weapons, the freespace of your ship will change automatically).

------------------
The (url="http://"https://secure.ambrosiasw.com/cgi-bin/store/hazel.cgi?action=serve&item;=breakdown.html&BREAKDOWN;_SKUID=1480")Ambrosia Mac CD(/url) with other registrations - 5$. Paying for (url="http://"http://www.ambrosiasw.com/games/evn/")EV Nova(/url) as it's such a great game - 30$.
The (url="http://"http://www.ambrosiasw.com/games/evn/tshirts.html")1337 EV Nova T-shirt(/url) - 22$. The (url="http://"http://w00tware.ev-nova.net/")NovaTools(/url) by wOOtWare to tinker with your Nova - FREE!
The feeling you're a Nova geek - priceless.
There are things you can't buy or that are free, for everything else, there's indeed Eurocard Mastercard.

Edit: My internal keyboard typing code is buugy. You sse, the text to be typed comes from a language module (the English one in this case) as a stream of bytes, the module being fed itself from the central creative mind that creates the ideas and the eesence of the text to be typed. Now the keyboard typing module receives this stream of bytes, translates them one by one into glyphs, that the keyboard module orders the eyes to lokk for. Once the glyph found, the keyboard typing module orders the finger to type the key. It's preety unoptimised code, no caching of the key positions, so much so, in fact, that the keyboard module sometimes has to send interuupts to the language module to pause the stream of bytes, sometimes pausing the central creative mind itself, until the internal stream cache of the keyboard typing code is empty. In a desperate attempt to spped up the things, whenever the keyboard typing module receives tto identical consecutive bytes, it raises an exception to order the finger to prees the same key, bypassing the usual procedure and allowing to go for the key after the two. But the problem is the timing is sometimes bad, as the exception does not take the usual route, and can cause the bad key to be preesed again, sometimes the previous leeter, but also sometimes the foloowing leteer, causing the slight problems you may hapeen to sse from time to time.

(This message has been edited by Zacha Pedro (edited 03-11-2004).)

Quote

Originally posted by Masamune:
How are you "aquireing" those torpedos? Are they just listed as ammo for the weapon?

The default ammo of the weapon.

Quote

Originally posted by Klepsacovic:
Send me a copy of the plug-in, I'll try to look at the problem. You can just use the email link by my profile, just as long as it's less than 10MB.

I appreciate the offer, but, as zhouj said...

Quote

Originally posted by zhouj:
Chances are that this is from the latest build of SFA. I doubt UT is inclined to release any version of it.

On the nosey.

Quote

Originally posted by Zacha Pedro:
**Are you sure you didn't overlook something such as a default outfit?

I know the freespace is handled this way: frrespace of the basic ship+space taken by the default outfits and weapons-space taken by the current outfit and weapons (this is necessary because the pilot files does not store the freespace, just the ID of your ship, and those of your weapons and outfits, so should you make a plug that modifies the default freespace of the ship you own, but also the default outfits and weapons, the freespace of your ship will change automatically).

**

I thought of that, but even then it should only add 8 on for a total of 16 tons -- for some reason, it's adding an additional three onto that, for a total of 19 tons free.

So, it's as follows:

free space: 8
Ammo for weapon (at 1 ton each): 8

When I go to the outfitters, I can buy an additional 11, giving me 19.

I only want the player to get those eight, d*mmit.

------------------
Starfleet Adventures: A Star Trek TC for EVN (url="http://"http://www.ev-nova.net/forums/viewtopic.php?t=145") Discussion Board (/url)
Starfleet Adventures (url="http://"http://www.ev-nova.net/forums/viewtopic.php?t=71")Progress Log(/url)
denki's Starfleet Adventures (url="http://"http://www.geocities.com/starfleet_adventures/")FAQ page(/url)
It is better to feed the goat than it is today.

Are there more than one oütf calling the same wëap?

-reg

------------------
"As a rule we believe as much as we can. We would believe everything if only we could."
~ William James

Yes, actually -- two of them, to be precise.

------------------
Starfleet Adventures: A Star Trek TC for EVN (url="http://"http://www.ev-nova.net/forums/viewtopic.php?t=145") Discussion Board (/url)
Starfleet Adventures (url="http://"http://www.ev-nova.net/forums/viewtopic.php?t=71")Progress Log(/url)
denki's Starfleet Adventures (url="http://"http://www.geocities.com/starfleet_adventures/")FAQ page(/url)
It is better to feed the goat than it is today.

And do the two different oütfs have different masses, or secondary ModTypes?

I imagine that since you're specifying a wëap on the ship resource, the engine has to guess at which oütf to use for both weapon and ammo. If there are ambiguities with differing masses or secondary effects like a cargo mod, then there could be trouble.

-reg

------------------
"As a rule we believe as much as we can. We would believe everything if only we could."
~ William James

Well, it seems that one of the following is happening:

It is adding the torpedos' mass, minus one;

It is adding the torpedos' mass, minus the mass of the item you are giving it.

So, in this case, I suppose you'd put 1. In other cases, we'd need to test it.

Why don't you try it with 1?

------------------
The programmer's code of entomology: there's always another bug.
Windows users: stop asking for plugins. (url="http://"http://www.aznt.com/EVN/EVNEW/")Make one yourself.(/url)
(url="http://"http://www.cwssoftware.com")Sephil Saga Website(/url)
(url="http://"http://www.evula.org/infernostudios/search.html")Add-ons Search Engine(/url)

Quote

Originally posted by Regulus:
**And do the two different oütfs have different masses, or secondary ModTypes?

I imagine that since you're specifying a wëap on the ship resource, the engine has to guess at which oütf to use for both weapon and ammo. If there are ambiguities with differing masses or secondary effects like a cargo mod, then there could be trouble.**

Both weapons that refer to the ammo have 0 mass and no secondary ModTypes.

Quote

Originally posted by orcaloverbri9:
**Well, it seems that one of the following is happening:

It is adding the torpedos' mass, minus one;

It is adding the torpedos' mass, minus the mass of the item you are giving it.

So, in this case, I suppose you'd put 1. In other cases, we'd need to test it.

Why don't you try it with 1?

**

I did one better and set the FreeMass to 0. It then doubled the mass of the allotted torps as "free" mass, i.e. a ship that had 4 torps had room for 4 more torps.

I suppose I could outfit all ships with half the torpedos I intend them to have, but that's just a work-around (much like I had to do with my other multiple torp issue). I'd like to figure out why it's doing this, though.

------------------
Starfleet Adventures: A Star Trek TC for EVN (url="http://"http://www.ev-nova.net/forums/viewtopic.php?t=145") Discussion Board (/url)
Starfleet Adventures (url="http://"http://www.ev-nova.net/forums/viewtopic.php?t=71")Progress Log(/url)
denki's Starfleet Adventures (url="http://"http://www.geocities.com/starfleet_adventures/")FAQ page(/url)
It is better to feed the goat than it is today.

I think you should try deleting the supernumerary outfits that's referencing the weapon and/or ammo and see if the problem clears up. It seems fishy to me.

If that fixes things, then you can carefully re-implement them until you find the point at which it's screwing up.

-reg

------------------
"As a rule we believe as much as we can. We would believe everything if only we could."
~ William James

I'll give it a shot -- I kinda need the two weapons to draw from the same ammo source, though.

------------------
Starfleet Adventures: A Star Trek TC for EVN (url="http://"http://www.ev-nova.net/forums/viewtopic.php?t=145") Discussion Board (/url)
Starfleet Adventures (url="http://"http://www.ev-nova.net/forums/viewtopic.php?t=71")Progress Log(/url)
denki's Starfleet Adventures (url="http://"http://www.geocities.com/starfleet_adventures/")FAQ page(/url)
It is better to feed the goat than it is today.

Quote

Originally posted by UncleTwitchy:
**I'll give it a shot -- I kinda need the two weapons to draw from the same ammo source, though.

**

Yes. But after you do that you will know exactly what causes the system to screw up - and thus we all can gain a greater understanding of the game engine and it's limitations and bugs, and mabey even report it to Matt Burch.
-Az

------------------
It is here. EVNEW Public Beta (url="http://"http://www.aznt.com/EVN/EVNEW")www.aznt.com/EVN/EVNEW(/url)
Stuffit is a piece of .sit.

Quote

I'll give it a shot -- I kinda need the two weapons to draw from the same ammo source, though.

You can do that with two different weapons, though.

------------------
To quote a pillar of American society: D'OH!

I always thought that the engine didn't include standard outfits in the free space calculation. If you say the ship has 5 tons of space, and 200 tons of outfits, you could sell all the outfits to get 200 tons of space. Otherwise pretty nasty things could happen if you did that.

------------------
--sitharus
(url="http://"http://www.sitharus.com/")Me, online!(/url)
Insults are the arguments employed by those who are in the wrong. Jean-Jacques Rousseau

Quote

Originally posted by blackhole:
**I always thought that the engine didn't include standard outfits in the free space calculation. If you say the ship has 5 tons of space, and 200 tons of outfits, you could sell all the outfits to get 200 tons of space. Otherwise pretty nasty things could happen if you did that.

**

My understanding is that if:
Freespace=100 tons
Combined weapons=110 tons
Combined standard outfits= 120 tons
If the player sold everything off, they would be left with 330 tons of space.
Is that the same as what you were saying?
-Az

------------------
It is here. EVNEW Public Beta (url="http://"http://www.aznt.com/EVN/EVNEW")www.aznt.com/EVN/EVNEW(/url)
Stuffit is a piece of .sit.