[Release] RandomHits 1.7.1

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: another_commander, winston

User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2553
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: [Release] RandomHits 1.7.1

Post by spara »

SARR wrote:I realised yesterday, that I was running an old version of the Random Hits. So I upgraded to 1.7.1. Since then I was not able to find any victims anymore.....I cleared the cache, yes. Then I quit the running contract and started a new one, no effect. Still cannot find the victim. I always stay on the main lane and directly fly to the planet, but they do not appear.......any ideas?
The mark is on the witchpoint - main station lane. Not on the wp-planet lane.

SARR
Competent
Competent
Posts: 50
Joined: Tue Feb 25, 2014 11:32 am

Re: [Release] RandomHits 1.7.1

Post by SARR »

Ok, how Do I find that lane.? Cant See the station from there.

User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2553
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: [Release] RandomHits 1.7.1

Post by spara »

SARR wrote:Ok, how Do I find that lane.? Cant See the station from there.
[wiki]Advanced Space Compass[/wiki] is your friend here. :)

SARR
Competent
Competent
Posts: 50
Joined: Tue Feb 25, 2014 11:32 am

Re: [Release] RandomHits 1.7.1

Post by SARR »

spara wrote:
SARR wrote:Ok, how Do I find that lane.? Cant See the station from there.
[wiki]Advanced Space Compass[/wiki] is your friend here. :)
yes, thanks for the hint! great thing once you read the manual :wink:

User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2553
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: [Release] RandomHits 1.7.1

Post by spara »

New version (1.8 ) for Oolite 1.79 uploaded. Get it from the Expansion Manager.

* New 1.79 populator used where possible without major rewrite. Saving at the Bar now works.
* New 1.79 roles given for shipset ships.

Please report of any oddities. My time's too limited at the moment for a really thorough testing. Saving, first level hits and space bar attacks seem to work ok and once in a while I have seen a RH ship fly by. I'm especially interested in revenging relatives and that they trigger as intended. If you meet them, I would like to know.

User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: [Release] RandomHits 1.7.1

Post by Eric Walch »

The "ShipDockedWithStation" handler creates a lot of variables that are needed at the spacebar. But, it could be that when loading a game at a custom station, that handler automatically fires. (If so, it's not yet in de Wiki)

If not, the RH code needs a change to force this handler to run after loading a saved game.

As you don't see misbehaviour, I assume this part still functions okay. When I have time, I look through the code, to see if no variable is missed when starting this way.

User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2553
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: [Release] RandomHits 1.7.1

Post by spara »

Eric Walch wrote:The "ShipDockedWithStation" handler creates a lot of variables that are needed at the spacebar. But, it could be that when loading a game at a custom station, that handler automatically fires. (If so, it's not yet in de Wiki)

If not, the RH code needs a change to force this handler to run after loading a saved game.

As you don't see misbehaviour, I assume this part still functions okay. When I have time, I look through the code, to see if no variable is missed when starting this way.
I have "solved" the problem by not showing the board when the game is loaded from the bar. You'll have to launch and dock to read it. It looked like a bit too massive code change to run the needed bit at load. It seems to work as intended.

User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2553
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: [Release] RandomHits 1.7.1

Post by spara »

Board actually now works in my version straight after save/load from bar. It's a nice touch, although the offers are not preserved over saves. Gives an opportunity to live a true bounty hunter's life never visiting main stations :) . I'll test it a bit more and wait for bug reports from the previous version (1.8 ) before uploading. A week perhaps?

User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: [Release] RandomHits 1.7.1

Post by Eric Walch »

although the offers are not preserved over saves.
That is a risk when saving at non-mainstations. None of the existing oxp's is prepared for such an action.

I think the legacy version of RH would have saved many variables because it only used the mission variables. With the JS version I replaced all mission variables that were only needed at the bar, with temporary variables.

It is possible to convert all those to a single json variable on saving and store that all in a single mission variable. But is it worth the trouble?

User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4018
Joined: Fri Nov 11, 2011 6:19 pm

Re: [Release] RandomHits 1.7.1

Post by cim »

Eric Walch wrote:
although the offers are not preserved over saves.
That is a risk when saving at non-mainstations. None of the existing oxp's is prepared for such an action.
Definitely - one reason there's no attempt made to automatically mark stations as saveable. (Mission offer on dock should probably move to an interface screen anyway, of course)

User avatar
Thargoid
Thargoid
Thargoid
Posts: 5510
Joined: Thu Jun 12, 2008 6:55 pm

Re: [Release] RandomHits 1.7.1

Post by Thargoid »

It might be my (admittedly quite low power) laptop, but I can't seem to get the OXZ version to download more than 20MB (a bit of a problem given the file size reports as 103MB!). It could well be my end, but it does make me wonder a bit about what is going on and why it seems to just stop (and crashes the game).

By the way, does the file need to be that massively large, given that 1.79 already contains Griff's models and shaders, or are the ones in the OXZ different?

User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 13804
Joined: Sat Jul 04, 2009 9:31 pm
Location: Corke's Drift
Contact:

Re: [Release] RandomHits 1.7.1

Post by Cody »

Thargoid wrote:.. given that 1.79 already contains Griff's models and shaders
Does it? I thought 1.79 used Solo's non-shadered version of Griff's models?

User avatar
Thargoid
Thargoid
Thargoid
Posts: 5510
Joined: Thu Jun 12, 2008 6:55 pm

Re: [Release] RandomHits 1.7.1

Post by Thargoid »

Hmm, yes I think you're right on that score.

Anyway on the 4th attempt, it finally managed to download and install. Perhaps we may benefit from a notification or something in the trunk code for OXZs of a larger size that things may stop responding temporarily. It could put people off if they aren't expecting things like that.

User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2553
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: [Release] RandomHits 1.7.1

Post by spara »

Thargoid wrote:It might be my (admittedly quite low power) laptop, but I can't seem to get the OXZ version to download more than 20MB (a bit of a problem given the file size reports as 103MB!). It could well be my end, but it does make me wonder a bit about what is going on and why it seems to just stop (and crashes the game).

By the way, does the file need to be that massively large, given that 1.79 already contains Griff's models and shaders, or are the ones in the OXZ different?
It's big primary because there are Staer9's ships included. Amongst others. Core ships are used through like-shipping. I have pondered a bit about using external_dependencies as it would be possible with 1.79 and it's possibilities of getting datakeys through roles, but I'm a bit hesitant. I kind of like it that I can have these ships rarely popping in core roles after installing RH so that they don't change the balance much than installing the ships as additional ships and constantly pumping into them. That's a matter of taste of course.

It's a good test to the download system :mrgreen: . Is 150 MB limit too high?

User avatar
Thargoid
Thargoid
Thargoid
Posts: 5510
Joined: Thu Jun 12, 2008 6:55 pm

Re: [Release] RandomHits 1.7.1

Post by Thargoid »

It gave my machine severe indigestion, so perhaps splitting it down and using separate but required ship OXZs might be an option. But also my machine might be a special case, so it could be worth getting some other inputs from other users too.

As it's such a great and well-known OXP/Z I just don't want people to get put of it (or the game) if they have similar downloading issues.

Post Reply