persistent cache of script

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
Arexack_Heretic
Dangerous Subversive Element
Dangerous Subversive Element
Posts: 1876
Joined: Tue Jun 07, 2005 7:32 pm
Location: [%H] = Earth surface, Lattitude 52°10'58.19"N, longtitude 4°30'0.25"E.
Contact:

persistent cache of script

Post by Arexack_Heretic »

Am I going soft?

I can't get the cache to be deleted.

I have only CargoWrex and Thargorn installed.
I am trying to test cargo with the pirate-stash, I initially wanted to add asteroids.
Unfortunately the 'radius' of addShipsInRadius doesnt work anymore(was fixed?) so they got crowded.
Tried to take out the asteroids with <!--,didn't work.
then deleted the entire string. didn't work.
deleted the oolite-cache in GNUSTEP/Library. didn't work.

the asteroids dutyfully appear. without me or the script asking for them.

Are active scripts now cached into the savefile? I am confused.
Riding the Rocket!
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: persistent cache of script

Post by JensAyton »

Arexack_Heretic wrote:
Are active scripts now cached into the savefile? I am confused.
Nope. You sure these aren’t naturally-occurring asteroids? and that you've deleted the cache for the right version? As far as I can see, the current builds use GNUstep/Libarary/Caches/Oolite-cache.plist. (Then again, they should be deleting the old version.)
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: persistent cache of script

Post by Commander McLane »

Arexack_Heretic wrote:
Unfortunately the 'radius' of addShipsInRadius doesnt work anymore(was fixed?) so they got crowded.
You do know that the method is called addShipsWithinRadius, do you? (Which is different to what you have written.)
User avatar
Arexack_Heretic
Dangerous Subversive Element
Dangerous Subversive Element
Posts: 1876
Joined: Tue Jun 07, 2005 7:32 pm
Location: [%H] = Earth surface, Lattitude 52°10'58.19"N, longtitude 4°30'0.25"E.
Contact:

Post by Arexack_Heretic »

I have only installed the latest version from Berlios.
(My system crashed a while back)

-No. no asteroids clumps of 10+ asteroids would naturally occur within scanner range at the WP. plus they are touching each other almost.

edit here is a pic:
http://www.box.net/shared/62ng19hlgv

@cMcL: Yep. I checked, I just wrote it wrong here.



I deleted the right file earlier, and pressing SHIFT explicitly empties the cache according to the stderr.
I still encounter the clump of misplaced rocks....I am now gonna check whether I am messing up again with a dulicate script someplace.

rocks were coming from a 'spawn' command.
annoyingly spawn no longer acts on the entity-location of the caller, but always at the WP. This is what confused me. ....i think.
Riding the Rocket!
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

Hm. If it is a bug with addShipsWithinRadius, then it must be a PC-only bug. I haven't had any problems recently on my Mac.

Or another annoying question to A_H: Could you perhaps post the script-line with the addShipsWithinRadius-method? It could just be that for some reason you chose a very small radius?!?
User avatar
Arexack_Heretic
Dangerous Subversive Element
Dangerous Subversive Element
Posts: 1876
Joined: Tue Jun 07, 2005 7:32 pm
Location: [%H] = Earth surface, Lattitude 52°10'58.19"N, longtitude 4°30'0.25"E.
Contact:

Post by Arexack_Heretic »

<string>addShipsWithinRadius: piratestash 5 wp 0 1250 17500 1500</string>
However this is more probably me being me and messing things up.
The rocks I observed were from a launchactions=spawn: asteroids 8 within the shipdata of another rockthing.
The thing itself was located somewhere halfway to the station, while the spawned rocks were at the WP.
Riding the Rocket!
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

Arexack_Heretic wrote:
<string>addShipsWithinRadius: piratestash 5 wp 0 1250 17500 1500</string>
However this is more probably me being me and messing things up.
Indeed.

On first glance: What do you mean by "wp"? This is not valid, the third argument is missing. Like "wpm". Try this and look what happens.

On second glance: 1500 meters is not a very big radius. But usually it should give enough room for five asteroids.
User avatar
Arexack_Heretic
Dangerous Subversive Element
Dangerous Subversive Element
Posts: 1876
Joined: Tue Jun 07, 2005 7:32 pm
Location: [%H] = Earth surface, Lattitude 52°10'58.19"N, longtitude 4°30'0.25"E.
Contact:

Post by Arexack_Heretic »

it works...sorta;
generates a small group of treasuroids near the WP.

500 is about the minimum for 8 rocks.

I'll test wpm later tonight. Gotta go to a family function.
Riding the Rocket!
Post Reply