Couldn't it be done by getting an array of all equippment installed? When a ship enters combat, this array could be constantly surveyed. When one item gets destroyed, this could be registered. Am I wrong?DrBullwinkle wrote:... If I figure out a good way to do it, then I might add it. In the meantime, use Upgrade Kits and/or Player Workshop.
Marine Repairs and Training [TC][AP][ALP]
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
- DrBullwinkle
- Posts: 5715
- Joined: Sat, 17. Dec 11, 01:44
We cannot check frequently because the player may have many ships with marines (performance concern). So how do we differentiate between "destroyed" equipment and "intentionally removed" equipment?
Also, I do not know a reliable way to detect the end of combat. SIGNAL_ATTACKED *might* work to detect the beginning of combat, although a single missile strike (or accidental collision) may not be detected in time.
So I do not see a reliable way for the script to know what equipment should be on the ship. Not without requiring the player to save updates, which could be confusing (and easy to forget).
Also, I do not know a reliable way to detect the end of combat. SIGNAL_ATTACKED *might* work to detect the beginning of combat, although a single missile strike (or accidental collision) may not be detected in time.
So I do not see a reliable way for the script to know what equipment should be on the ship. Not without requiring the player to save updates, which could be confusing (and easy to forget).
Peace through superior firepower
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
Just spitballing here...DrBullwinkle wrote:So I do not see a reliable way for the script to know what equipment should be on the ship. Not without requiring the player to save updates, which could be confusing (and easy to forget).
What if the script saves a list of all of installed equipment on a particular ship when it docks/undocks, then makes a "restoration check" against that list periodically and if it finds any missing equipment any onboard marines will restore it. That would help in terms of performance. You could limit the restoration check to when the ship lands again, to further improve performance and create a sort of balancing mechanic.
The issue of destroyed vs. ejected is still present, though. Maybe charge players the price of the ware when it's restored? That would preempt exploiting equipment repairs; you'd still get marines "restoring" ejected equipment. But it'd save players from the hassle of buying replacement parts manually.
Last edited by A5PECT on Sun, 18. Nov 12, 21:05, edited 2 times in total.
Admitting you have a problem is the first step in figuring out how to make it worse.
- DrBullwinkle
- Posts: 5715
- Joined: Sat, 17. Dec 11, 01:44
Yes, that is the problem.KloHunt3r wrote:The issue of destroyed vs. ejected is still present, though. Maybe charge players the price of the ware when it's restored?
Price is not the important concern. The important part is that it would become impossible for the player to intentionally remove equipment.
Last edited by DrBullwinkle on Mon, 19. Nov 12, 05:20, edited 1 time in total.
Peace through superior firepower
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
- DrBullwinkle
- Posts: 5715
- Joined: Sat, 17. Dec 11, 01:44
Shield regeneration is an easier problem, Señor. I already agreed to add it in a future version.
Peace through superior firepower
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
- DrBullwinkle
- Posts: 5715
- Joined: Sat, 17. Dec 11, 01:44
In that case, no, the game gives no signal that can be used by scripts when the music changes. There are only only a few signals that we can use in scripts, such as SIGNAL_ATTACKED and SIGNAL_KILLED.senor135 wrote:right, just asking for my own curiosity's sake
In the case of shield regeneration, I can test for the presence of enemies, and restore shields when no enemies are present.
The sticky problem with equipment replacement is allowing the player to intentionally uninstall equipment. If the player never uninstalled or moved equipment, then equipment replacement would be equally easy.
Peace through superior firepower
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
- DrBullwinkle
- Posts: 5715
- Joined: Sat, 17. Dec 11, 01:44
gefer8 wrote:Why not equip each of the marines with a space suit and use it's repair laser to repair the ship for free?
1) Marine Repairs can be done for free. Just use the well-documented features in the t file to set pricing to zero.
2) Marines do have space suits, obviously, although they have military-grade jet packs which they use for boarding.
In order for marines to use repair lasers to repair a ship, they would have to be *outside* the ship. That would be disruptive to everything else you do. In other words, it would be a completely different script.
Speaking of completely different scripts, if you want to see the single most visually stunning script on the forum, take a look at A.Persyn's Marine Corps.. That script does have a repair feature which sends a squad of marines, in space suits, to surround a ship and repair it with repair lasers. I strongly recommend getting into a turret and using the view keys (including zoom) to get the right point of view to watch this amazing stunt.
If you think the graphical view is amazing, consider the amount of effort that went into making it look so good. The amount of coding that went into doing something entirely for "looks" is nothing short of breathtaking!
It is an excellent script, although the only feature that I use from it in my own game is a bug-fixed version of the astronaut transporter. But I admire the quality of the code and the demonstration of programming wizardry that went into making Marine Corps.
It is definitely worthwhile to watch Marine Corps do at least one repair job; regardless of whether you use it in your regular game. Somebody really ought to make a video of it and use it in a cut scene for a future game update; it is that good. Don't forget the popcorn!
Peace through superior firepower
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
Well thanks, didn't notice that. That is the kind of script I was looking for.DrBullwinkle wrote:gefer8 wrote:Why not equip each of the marines with a space suit and use it's repair laser to repair the ship for free?
1) Marine Repairs can be done for free. Just use the well-documented features in the t file to set pricing to zero.
2) Marines do have space suits, obviously, although they have military-grade jet packs which they use for boarding.
In order for marines to use repair lasers to repair a ship, they would have to be *outside* the ship. That would be disruptive to everything else you do. In other words, it would be a completely different script.
Speaking of completely different scripts, if you want to see the single most visually stunning script on the forum, take a look at A.Persyn's Marine Corps.. That script does have a repair feature which sends a squad of marines, in space suits, to surround a ship and repair it with repair lasers. I strongly recommend getting into a turret and using the view keys (including zoom) to get the right point of view to watch this amazing stunt.
If you think the graphical view is amazing, consider the amount of effort that went into making it look so good. The amount of coding that went into doing something entirely for "looks" is nothing short of breathtaking!
It is an excellent script, although the only feature that I use from it in my own game is a bug-fixed version of the astronaut transporter. But I admire the quality of the code and the demonstration of programming wizardry that went into making Marine Corps.
It is definitely worthwhile to watch Marine Corps do at least one repair job; regardless of whether you use it in your regular game. Somebody really ought to make a video of it and use it in a cut scene for a future game update; it is that good. Don't forget the popcorn!
"Thy Pirates giveth, thy Player taketh away."
- DrBullwinkle
- Posts: 5715
- Joined: Sat, 17. Dec 11, 01:44
It is not for everyone, but it is pretty to watch. At least once.
Peace through superior firepower
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
Reason I'm using SLAM instead of marine repairs is that SLAm brings more realism into it rather than usin cheap slave labor.DrBullwinkle wrote:Corporeal has not posted in a year and a half.marcx wrote:Links of course aren't acting!!
From the description, it appears that SLAM works similarly to Marine Repairs 2, with two differences:
- SLAM charges a constant "maintenance fee" every hour; like an Insurance Fee. This is way of increasing "economic challenge" in the game.
- If the fee cannot be paid, then damage is inflicted on your ships.
It seems like a good idea, for some players, although probably not for everyone.
I do not want to hijack Corporeal's thread, in case he is merely lurking, but if you want these as optional features in Marine Repairs 2, then please request them in that thread.
If it's possible I'd like to make a request for turning the paid repairs on
Elite Dangerous| I survived the Dragon Incident ... then I took an arrow to the knee
We want the Boron back!
We want the Boron back!
- DrBullwinkle
- Posts: 5715
- Joined: Sat, 17. Dec 11, 01:44
Well, I would not call SLAM "more realistic", unless you live in a gangster-controlled neighborhood.Sorkvild wrote:Reason I'm using SLAM instead of marine repairs is that SLAm brings more realism into it rather than usin cheap slave labor.
If it's possible I'd like to make a request for turning the paid repairs on
I would argue that Marine Repairs is more "realistic", with marines that charge for their work and receive a small amount of on-the-job training.
By default, Marines Repairs charges almost as much for repairs as the cost at a shipyard. You can increase the cost by changing the factors in the t file. The t file itself should be well-documented.
SLAM is more about adding an additional cost to the universe: "insurance". Also the strong-arm tactic of the threat of damage to your ships if you do not pay the "insurance".
It is an interesting idea, and I am not opposed to adding it, but Yacek posted a link for SLAM, so perhaps that satisfies everyone?
Peace through superior firepower
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
- DrBullwinkle
- Posts: 5715
- Joined: Sat, 17. Dec 11, 01:44
Yes.
There are two different charges:
- Repair cost (default is slightly less than repairs at a shipyard).
- Training cost. When marines do repairs, they earn a small amount of training. The fee for training is the same as vanilla.
You can increase (or decrease) the default settings by adjusting the numbers in the t file. You can adjust training as well as repair features.
There are two different charges:
- Repair cost (default is slightly less than repairs at a shipyard).
- Training cost. When marines do repairs, they earn a small amount of training. The fee for training is the same as vanilla.
You can increase (or decrease) the default settings by adjusting the numbers in the t file. You can adjust training as well as repair features.
Peace through superior firepower
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
Can I make a request for Teladianium to be another possible ware. Sense its supposed to be used as a type of internal platting.
Being common wealth in X3AP your at a dis-vantage because Microchips are a 1:1 ratio for repair, while Hull Plating for the buck is way more effective, like 26800:268. For the Teladianium maybe something like 12800:256, because its a M ware instead of L, and half the size?
Being common wealth in X3AP your at a dis-vantage because Microchips are a 1:1 ratio for repair, while Hull Plating for the buck is way more effective, like 26800:268. For the Teladianium maybe something like 12800:256, because its a M ware instead of L, and half the size?
- DrBullwinkle
- Posts: 5715
- Joined: Sat, 17. Dec 11, 01:44
The only reason I boosted the default value for Hull Plating is because it is so huge. Microchips make more sense because they are the most valuable ware in the game for each unit of cargo space.
(If you are *buying* these wares, then why not just pay your marines with credits? )
But, OK... I will add Teladianium when I do another version.
(If you are *buying* these wares, then why not just pay your marines with credits? )
But, OK... I will add Teladianium when I do another version.
Peace through superior firepower
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)