[RELEASE] Icesteroids V2

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

Moderators: another_commander, winston

User avatar
CommonSenseOTB
---- E L I T E ----
---- E L I T E ----
Posts: 1397
Joined: Wed May 04, 2011 10:42 am
Location: Saskatchewan, Canada

Re: [RELEASE] Icesteroids V2

Post by CommonSenseOTB »

Commander McLane wrote:
Back to topic again.
Commander McLane wrote:
The next question is: if there is nothing to gain from mining iceteroids, should miners shoot them up in the first place? Perhaps they'd do it for fun, or to clear the area?
The question is more or less rhetorical, because I don't see an easy way to prevent miners from shooting iceteroids. According to the Wiki scanForRocks scans first for ships havin role "boulder" and, if it finds none, for ships having role "asteroid". Therefore the ice boulders are ignored, because they don't have "boulder" among their roles. The iceteroids, however, are spawned through their "asteroid" role, therefore they have that role by definition. And while it is possible to add other roles after spawning, I don't think it's possible to remove a role after spawning. Thus, as long as they're spawned as normal asteroids (which in itself makes sense), I don't think miners can easily be prevented from blowing them up.
Perhaps this is an oxp feature? Every OXP author is responsible for getting their shipdata.plist right. It's all well-documented, and it's not exactly rocket science. :)
Take an idea from one person and twist or modify it in a different way as a return suggestion so another person can see a part of it that can apply to the oxp they are working on.


CommonSense 'Outside-the-Box' Design Studios Ltd.
WIKI+OXPs
User avatar
Staer9
---- E L I T E ----
---- E L I T E ----
Posts: 570
Joined: Fri Feb 18, 2011 4:53 pm
Location: Hatfield, Hertfordshire (poor industrial)

Re: [RELEASE] Icesteroids V2

Post by Staer9 »

CommonSenseOTB wrote:
Perhaps this is an oxp feature? Every OXP author is responsible for getting their shipdata.plist right. It's all well-documented, and it's not exactly rocket science.
I agree :P
Image
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: [RELEASE] Icesteroids V2

Post by Commander McLane »

CommonSenseOTB wrote:
Commander McLane wrote:
Commander McLane wrote:
The next question is: if there is nothing to gain from mining iceteroids, should miners shoot them up in the first place? Perhaps they'd do it for fun, or to clear the area?
The question is more or less rhetorical, because I don't see an easy way to prevent miners from shooting iceteroids. According to the Wiki scanForRocks scans first for ships havin role "boulder" and, if it finds none, for ships having role "asteroid". Therefore the ice boulders are ignored, because they don't have "boulder" among their roles. The iceteroids, however, are spawned through their "asteroid" role, therefore they have that role by definition. And while it is possible to add other roles after spawning, I don't think it's possible to remove a role after spawning. Thus, as long as they're spawned as normal asteroids (which in itself makes sense), I don't think miners can easily be prevented from blowing them up.
Perhaps this is an oxp feature?
I'm sure it is. :wink: (Which detail of my musings are you referring to? The fact that Oolite (to my knowledge) doesn't allow the removing of roles after spawning has nothing to do with any OXP, though.)
User avatar
CommonSenseOTB
---- E L I T E ----
---- E L I T E ----
Posts: 1397
Joined: Wed May 04, 2011 10:42 am
Location: Saskatchewan, Canada

Re: [RELEASE] Icesteroids V2

Post by CommonSenseOTB »

Commander McLane wrote:
The next question is: if there is nothing to gain from mining iceteroids, should miners shoot them up in the first place? Perhaps they'd do it for fun, or to clear the area?
This is a feature. The miners are clearing navigational hazards from the spacelanes or just having fun. Inexplicable or bizarre and even slightly less than logical behaviour by npcs adds to the immersion factor.
old freighter captain wrote:
Beware those belters son, steer clear of 'em when you see 'em. Spends most o' their time alone and some of 'em tend to go all funny in the head. No tellin' what they might do. Heh! You heed my words now son, ya hear?
:)
Take an idea from one person and twist or modify it in a different way as a return suggestion so another person can see a part of it that can apply to the oxp they are working on.


CommonSense 'Outside-the-Box' Design Studios Ltd.
WIKI+OXPs
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: [RELEASE] Icesteroids V2

Post by Commander McLane »

CommonSenseOTB wrote:
Commander McLane wrote:
The next question is: if there is nothing to gain from mining iceteroids, should miners shoot them up in the first place? Perhaps they'd do it for fun, or to clear the area?
This is a feature. The miners are clearing navigational hazards from the spacelanes or just having fun.
Yes, that's what I suggested in the first place with the second question, isn't it? :wink:

There is one detail that could seem odd, though. If the miners shoot iceteroids in order to clear navigational hazards, why do they completely ignore the resulting ice boulders? Aren't those navigational hazards as well, given their much bigger number compared to the original iceteroids?

I haven't installed the OXP, therefore I have no experience at all with it. I just imagine that I'd perhaps find this behaviour odd, if I'd observe it. And all I'm doing is musing about the current behaviour of the OXP as far as I understand it, which is that miners do target iceteroids, but then ignore their ice boulders.
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: [RELEASE] Icesteroids V2

Post by cim »

Commander McLane wrote:
SandJ wrote:
give them the role together with a role weight of 0. Then they never get chosen as ordinary boulders. You should add "boulder(0)" to their roles.
I tried that and now when an ice boulder is shot with a mining laser, it spawns a few more in its place. Although that was reported earlier in the thread, it is definitely doing it now. I am currently watching some mining vessels trying to mine an ever-increasing cloud of blue rocks. Link.[/quote]
You could add a ship script to the ice boulders containing

Code: Select all

this.shipTakingDamage(amount,whom,type) {
  if (this.ship.energy <= 0) {
    this.ship.remove(true);
  }
}
Then if the boulders' energy reaches zero, it should be removed from the universe without spawning new boulders.
User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

Re: [RELEASE] Icesteroids V2

Post by Norby »

I added this nicesteroids into the OXZ manager.
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2290
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia

Re: [RELEASE] Icesteroids V2

Post by Wildeblood »

Norby wrote:
I added this nicesteroids into the OXZ manager.
Good. It's about time someone did.
User avatar
Cholmondely
Archivist
Archivist
Posts: 5008
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: Icesteroids

Post by Cholmondely »

3 Comments

1) Transparency/translucency
Staer9 wrote: Sat Jun 11, 2011 8:59 am
Wildeblood wrote:
Too bright - the effect is more phosphorescent than translucent. It doesn't matter so much if they're in the sunlight, but on the dark side of the planet, where there is no sun at all, it is particularly obvious. I thought "kryptonite" more than "ice". Also, being bright, the edges of polygons are obvious which makes them look unrealistic...
Thanks for your comments, the trouble is that oolite doesn't support transparency (something which has had some debate before so there is no point going into detail now) because of this I had to emulate it as best as I could, which is why the normals are flipped, it is an effect not immediately noticeable by if you do notice you'll find yourself slowly getting closer and closer to the monitor. I also attempted to emulate a fractioning effect by using a glow-map... the problem with this you have pointed out, when they are on the dark side of the planet it seems unreal...
Will this still be an issue with all the work that a_c has recently done on graphics?

2) SW Economy
This oxp introduces water as a commodity. Could scooped icesteroids count - or would they need melting and distilling? And how would one include this in the game? Some sort of code in SW Economics, maybe?

3) Shiplibrary.plist
There isn't one...

4) Griff's Version
For reference: Griff's (original?) version is here

Edit: Oops! Wrong link
Last edited by Cholmondely on Sun Oct 23, 2022 4:05 pm, edited 1 time in total.
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
User avatar
montana05
---- E L I T E ----
---- E L I T E ----
Posts: 1166
Joined: Mon May 30, 2016 3:54 am
Location: lurking in The Devils Triangle (G1)

Re: Icesteroids

Post by montana05 »

Cholmondely wrote: Fri Oct 21, 2022 11:50 am
2) SW Economy
This oxp introduces water as a commodity. Could scooped icesteroids count - or would they need melting and distilling? And how would one include this in the game? Some sort of code in SW Economics, maybe?
If you want to keep it simple, just include a simple script to this OXP:

Check the market if water is a commodity
If yes, spawn some additional splinters containing water to scoop after a boulder is destroyed. Splinters are quite similar, with containers so easy to handle.
Scars remind us where we've been. They don't have to dictate where we're going.
User avatar
Cholmondely
Archivist
Archivist
Posts: 5008
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: Icesteroids

Post by Cholmondely »

montana05 wrote: Sat Oct 22, 2022 3:10 am
Cholmondely wrote: Fri Oct 21, 2022 11:50 am
2) SW Economy
This oxp introduces water as a commodity. Could scooped icesteroids count - or would they need melting and distilling? And how would one include this in the game? Some sort of code in SW Economics, maybe?
If you want to keep it simple, just include a simple script to this OXP:

Check the market if water is a commodity
If yes, spawn some additional splinters containing water to scoop after a boulder is destroyed. Splinters are quite similar, with containers so easy to handle.
I think that both this one - and Griff's original - produce ice-boulders, ice-splinters and occasional chunks of alloy.
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
User avatar
montana05
---- E L I T E ----
---- E L I T E ----
Posts: 1166
Joined: Mon May 30, 2016 3:54 am
Location: lurking in The Devils Triangle (G1)

Re: Icesteroids

Post by montana05 »

Cholmondely wrote: Sat Oct 22, 2022 6:50 pm
montana05 wrote: Sat Oct 22, 2022 3:10 am
Cholmondely wrote: Fri Oct 21, 2022 11:50 am
2) SW Economy
This oxp introduces water as a commodity. Could scooped icesteroids count - or would they need melting and distilling? And how would one include this in the game? Some sort of code in SW Economics, maybe?
If you want to keep it simple, just include a simple script to this OXP:

Check the market if water is a commodity
If yes, spawn some additional splinters containing water to scoop after a boulder is destroyed. Splinters are quite similar, with containers so easy to handle.
I think that both this one - and Griff's original - produce ice-boulders, ice-splinters and occasional chunks of alloy.
I didn't have a look at both OXP's, so now I am just guessing. I do believe that the splinters will provide minerals, nothing else. To spawn water, you will need to add more splinters containing it. I am still waiting for advice from phkb if this is a wanted feature or just another bug in the core game.
Scars remind us where we've been. They don't have to dictate where we're going.
User avatar
Cholmondely
Archivist
Archivist
Posts: 5008
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: Icesteroids

Post by Cholmondely »

montana05 wrote: Sun Oct 23, 2022 2:33 am
Cholmondely wrote: Sat Oct 22, 2022 6:50 pm
I think that both this one - and Griff's original - produce ice-boulders, ice-splinters and occasional chunks of alloy.
I didn't have a look at both OXP's, so now I am just guessing. I do believe that the splinters will provide minerals, nothing else. To spawn water, you will need to add more splinters containing it. I am still waiting for advice from phkb if this is a wanted feature or just another bug in the core game.
I was wrong. Double-checked with Telescope and a Mining Laser.

Staer9's icesteroids produce ice boulders which either split up into smaller ice boulders or into metal fragments (alloys).
Griffs Ice Asteroids split immediately into metal fragments.

One wonders if these effects should be changed. But then we would need boulders for Griff and splinters for both.

And one presumes that all that ice is just supposed to vaporise under the effects of the laser, even a tightly focused mining laser.
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
User avatar
montana05
---- E L I T E ----
---- E L I T E ----
Posts: 1166
Joined: Mon May 30, 2016 3:54 am
Location: lurking in The Devils Triangle (G1)

Re: Icesteroids

Post by montana05 »

Cholmondely wrote: Sun Oct 23, 2022 6:58 am
montana05 wrote: Sun Oct 23, 2022 2:33 am
Cholmondely wrote: Sat Oct 22, 2022 6:50 pm
I think that both this one - and Griff's original - produce ice-boulders, ice-splinters and occasional chunks of alloy.
I didn't have a look at both OXP's, so now I am just guessing. I do believe that the splinters will provide minerals, nothing else. To spawn water, you will need to add more splinters containing it. I am still waiting for advice from phkb if this is a wanted feature or just another bug in the core game.
I was wrong. Double-checked with Telescope and a Mining Laser.

Staer9's icesteroids produce ice boulders which either split up into smaller ice boulders or into metal fragments (alloys).
Griffs Ice Asteroids split immediately into metal fragments.

One wonders if these effects should be changed. But then we would need boulders for Griff and splinters for both.

And one presumes that all that ice is just supposed to vaporise under the effects of the laser, even a tightly focused mining laser.
Both could be changed, Staer9's could have added splinters and therefore to water if available. Griff I need to have a look at the OXP first,
if I could use the shaders for splinters, there shouldn't be a problem. However, I only know the basics of shaders and therefore Griff's usually I fail to modify. I also believe that splinters have a default of minerals, so a workaround will be needed to actually get water.
Scars remind us where we've been. They don't have to dictate where we're going.
User avatar
Cholmondely
Archivist
Archivist
Posts: 5008
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: Icesteroids

Post by Cholmondely »

montana05 wrote: Sun Oct 23, 2022 11:14 am
Cholmondely wrote: Sun Oct 23, 2022 6:58 am
montana05 wrote: Sun Oct 23, 2022 2:33 am


I didn't have a look at both OXP's, so now I am just guessing. I do believe that the splinters will provide minerals, nothing else. To spawn water, you will need to add more splinters containing it. I am still waiting for advice from phkb if this is a wanted feature or just another bug in the core game.
I was wrong. Double-checked with Telescope and a Mining Laser.

Staer9's icesteroids produce ice boulders which either split up into smaller ice boulders or into metal fragments (alloys).
Griffs Ice Asteroids split immediately into metal fragments.

One wonders if these effects should be changed. But then we would need boulders for Griff and splinters for both.

And one presumes that all that ice is just supposed to vaporise under the effects of the laser, even a tightly focused mining laser.
Both could be changed, Staer9's could have added splinters and therefore to water if available. Griff I need to have a look at the OXP first,
if I could use the shaders for splinters, there shouldn't be a problem. However, I only know the basics of shaders and therefore Griff's usually I fail to modify. I also believe that splinters have a default of minerals, so a workaround will be needed to actually get water.
Griff labelled it as an experiment... I wonder if he would be up to updating it for Specular/Gloss/Colourblind etc. - and then adding boulders and splinters?
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
Post Reply