EnglishGermanFrenchRussianPolishItalianSpanish
Log inRegister
 
[SCR] AI Ammo Cheat + DMG Mitigation (v1.08 - 17.12.11)
Post new topic Reply to topic Goto page 1, 2, 3, 4, 5  Next
View previous topic :: View next topic
Author Message
Gazz





Joined: 13 Jan 2006
Posts: 12407 on topic
Location: Bavaria
Thank you for registering your game
modified
PostPosted: Tue, 2. Jun 09, 20:04    Post subject: [SCR] AI Ammo Cheat + DMG Mitigation (v1.08 - 17.12.11) Reply with quote Print

English / Deutsch

This script is not compatible with X3: Albion Prelude.


AI Ammo Cheat + Damage Mitigation
  • AI Ammo Cheat
    ...because it's silly when the enemy stops shooting back.

    AI ships do not have any kind of supply system and frankly - I don't think anyone wants a full blown supply network with AI fleet tenders flying criss-cross around the universe, supplying thousands of ships for about 16 races.

    So let's cheat!

    This is an AL Plugin but there is no background task, no universe-wide scan to check all ships regularly.
    Well, there is a background task while a ship is being supplied but that one is extremely low profile and short lived.
    Everything is signal driven. If a ship never gets in a fight during it's lifetime, it is never touched.
    It doesn't need ammunition if it doesn't fight and this script is never run...

    The ALP does nothing beyond providing a switch to turn the whole thing on/off.


    Ships are not supplied with missiles.


  • Damage Mitigation

    Basically this is armour. For shields and hull.

    This is an optional Setting of the AL Plugin.

    Both AI and playerships are affected.

    It works IS as well as OOS.

    Heavy fighting ships are expected to take damage. Therefore they have more efficient shield generators and better armor.
    this applies to M2, M7, and M6.

    Any ship with hangars is a carrier.
    These are faster ships which are not intended to take damage but run away.
    Carriers do not have damage mitigation.

    Damage mitigation means that ships take less damage.

    • M2
      Shield Damage - 33 %
      Hull Damage - 66 %

    • M7
      Shield Damage - 16 %
      Hull Damage - 32 %

    • M6
      Shield Damage - 10 %
      Hull Damage - 20 %


    This does not affect shield regeneration at all. Only damage taken.

    If the shields are down it takes as long as before until they have fully recharged.

    If an M1 is hit for 50000 points of shield damage then an M2 would have been hit for 33500 and an M7 Tiger for 42000.
    An M7 Panther would have been hit for 50000.

    As with the Ammo Cheat, this script never runs unless a ship gets into a fight.

Download: ZIP


_________________
My complete script download page. . . . . . Xai-Corp MSCI List is scripter's friend. I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.


Last edited by Gazz on Sat, 17. Dec 11, 16:16; edited 17 times in total
Back to top
View user's profile Send private message Visit poster's website
Gazz





Joined: 13 Jan 2006
Posts: 12407 on topic
Location: Bavaria
Thank you for registering your game
PostPosted: Tue, 2. Jun 09, 20:04    Post subject: Reply with quote Print

** reserved **


_________________
My complete script download page. . . . . . Xai-Corp MSCI List is scripter's friend. I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
Back to top
View user's profile Send private message Visit poster's website
thunderai





Joined: 17 Apr 2009
Posts: 372 on topic

Thank you for registering your game
PostPosted: Tue, 2. Jun 09, 20:06    Post subject: Reply with quote Print

I always thought there was a massive trade system in place. Why else are orders for 6,000 rimes stopping at my EQ?

Back to top
View user's profile Send private message
Cronos988





Joined: 27 Aug 2007
Posts: 678 on topic

Thank you for registering your game
PostPosted: Tue, 2. Jun 09, 20:11    Post subject: Reply with quote Print

AI ships can run out of Ammo? 0.o

Very good idea then. The TC AI definetly needs some backup from good scripters like you Wink

If NPC ships do not get supplied with ammo, what does GOD do with all the Ammo the AI freighters buy (if they buy it) ?

Back to top
View user's profile Send private message
Gazz





Joined: 13 Jan 2006
Posts: 12407 on topic
Location: Bavaria
Thank you for registering your game
PostPosted: Tue, 2. Jun 09, 20:14    Post subject: Reply with quote Print

thunderai wrote:
I always thought there was a massive trade system in place.

Not exactly.
It is a system created to supply the player with credits.
Big difference.

That's why factories buy at high prices but sell low. The only reason for that madness is that the player is now able to buy low and sell high.
All these factories and docks in the game serve no purpose whatsoever - to AI races.
They only exist for the player to trade, gain credits, and buy equipment for his ships.


Quote:
Why else are orders for 6,000 rimes stopping at my EQ?

Because the free trader sees "Rimes" at an acceptable price.
So it buys it.

Then it tries to sell it somewhere.
Maybe it can, maybe not. Most likely it's getting destroyed by pirates or in a xenon sector while flying criss cross around the universe trying to sell an impossible to sell cargo of 6000 rimes.

That's also why space fuel sells.
Traders buy it. If they can ever sell it is completely irrelevant.
More traders will surely spawn.


Cronos988 wrote:
If NPC ships do not get supplied with ammo, what does GOD do with all the Ammo the AI freighters buy (if they buy it) ?

Cart it around until the freighter can either sell it or the ship is destroyed.
Either way, more can be bought.


The ideal location for selling is when the only station that would buy your goods is on the other side of a Xenon sector.
Traders buy your goods, get destroyed, more traders spawn to buy your goods.
If the (theoretically) buying station is an AI factory, it's prices stay high because it is never actually receiving the cargo. So it can lure even more traders into the Xenon sector.


_________________
My complete script download page. . . . . . Xai-Corp MSCI List is scripter's friend. I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
Back to top
View user's profile Send private message Visit poster's website
thunderai





Joined: 17 Apr 2009
Posts: 372 on topic

Thank you for registering your game
PostPosted: Tue, 2. Jun 09, 20:41    Post subject: Reply with quote Print

And then you go in a mop the place up and cappure all the wrecks.

Honestly, I thought GOD had some big plan where traders actually did something and didn't just 'exist'. Are you saying the meaning of life is pointless....that hurts man.

I wonder if you could mod the game so traders actually did something and i'd wonder if the game would come to a crashing hault because no goods are getting anywhere. No spacedocks with ships, no weapons, nothing would exisit.

Judging from your other mods, I am certain you have the skillz to rebuild the economy from the ground up and make it run without cheating.

Back to top
View user's profile Send private message
Treelor





Joined: 05 May 2008
Posts: 312 on topic

Thank you for registering your game
PostPosted: Tue, 2. Jun 09, 20:48    Post subject: Reply with quote Print

The freetrader behavior explains why I can't find any sort of weaponry half the time.

There ought to be traders that sell to EQ docks, as well - for a surplus military shop, they sure don't have a whole lot.

Back to top
View user's profile Send private message
Gazz





Joined: 13 Jan 2006
Posts: 12407 on topic
Location: Bavaria
Thank you for registering your game
PostPosted: Tue, 2. Jun 09, 21:05    Post subject: Reply with quote Print

thunderai wrote:
Honestly, I thought GOD had some big plan where traders actually did something and didn't just 'exist'. Are you saying the meaning of life is pointless....that hurts man.

Heheheh.
Don't ask a scripter how the game works. You won't very much like many of the answers. =)


thunderai wrote:
Judging from your other mods, I am certain you have the skillz to rebuild the economy from the ground up and make it run without cheating.

You're calling to the wrong god here.
Take your sacrifices to Lucike's temple. =P

I think in Reunion he experimented with unleashing his traders upon the universe, replacing the AI traders.
As a result, trade opportunities for the player became nonexistant.

Be careful what you wish for because you might get it.


PS: as a side effect this might also fix one of the bugs with OOS combat, where one laser without ammo nullifies the whole ship's damage.


_________________
My complete script download page. . . . . . Xai-Corp MSCI List is scripter's friend. I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
Back to top
View user's profile Send private message Visit poster's website
Lancefighter





Joined: 19 Dec 2004
Posts: 2936 on topic

Thank you for registering your game
PostPosted: Tue, 2. Jun 09, 22:29    Post subject: Reply with quote Print

Excellent...

Would it be too much to ask for a similar script for m7m/m8 resupply purposes?


_________________
in the market for a new sig, willing to pay 1 billion credits for a proper sig...
Back to top
View user's profile Send private message
thunderai





Joined: 17 Apr 2009
Posts: 372 on topic

Thank you for registering your game
PostPosted: Tue, 2. Jun 09, 22:37    Post subject: Reply with quote Print

Gazz wrote:
thunderai wrote:
Honestly, I thought GOD had some big plan where traders actually did something and didn't just 'exist'. Are you saying the meaning of life is pointless....that hurts man.

Heheheh.
Don't ask a scripter how the game works. You won't very much like many of the answers. =)


thunderai wrote:
Judging from your other mods, I am certain you have the skillz to rebuild the economy from the ground up and make it run without cheating.

You're calling to the wrong god here.
Take your sacrifices to Lucike's temple. =P

I think in Reunion he experimented with unleashing his traders upon the universe, replacing the AI traders.
As a result, trade opportunities for the player became nonexistant.

Be careful what you wish for because you might get it.


PS: as a side effect this might also fix one of the bugs with OOS combat, where one laser without ammo nullifies the whole ship's damage.


An entire Universe of ESTs. Now that would be interesting, and fully functional one would think. To add, more realistic, in no way should I be able to build a fleet of warships in less than 4 days of in game time.

What does GOD need with a starship - anyway i guess. I had expected the game to be rubberbanded with scripts, but I had hoped it was with a purpose and the AI ment something. I may as well load up a fleet of ESTs of my own and start fixing this broken game and make money at it in the process.

Does anything in the script library mention if the AI will stop spawning traders if I take over the universe?

Back to top
View user's profile Send private message
Lancefighter





Joined: 19 Dec 2004
Posts: 2936 on topic

Thank you for registering your game
PostPosted: Tue, 2. Jun 09, 22:41    Post subject: Reply with quote Print

ai spawning is actually done through jobs..
but from what i understand, if you use a sector takeover script, jobs no longer recognizes that sector as 'race', so it doesnt spawn stuff there.
That requires you to take over nearly the entire universe though.


_________________
in the market for a new sig, willing to pay 1 billion credits for a proper sig...
Back to top
View user's profile Send private message
thunderai





Joined: 17 Apr 2009
Posts: 372 on topic

Thank you for registering your game
PostPosted: Tue, 2. Jun 09, 22:58    Post subject: Reply with quote Print

Lancefighter wrote:
ai spawning is actually done through jobs..
but from what i understand, if you use a sector takeover script, jobs no longer recognizes that sector as 'race', so it doesnt spawn stuff there.
That requires you to take over nearly the entire universe though.


Which would defeat the purpose, because in order to take over the sector you would have to destroy everything in it.

Back to top
View user's profile Send private message
Lancefighter





Joined: 19 Dec 2004
Posts: 2936 on topic

Thank you for registering your game
PostPosted: Tue, 2. Jun 09, 23:51    Post subject: Reply with quote Print

thunderai wrote:
Lancefighter wrote:
ai spawning is actually done through jobs..
but from what i understand, if you use a sector takeover script, jobs no longer recognizes that sector as 'race', so it doesnt spawn stuff there.
That requires you to take over nearly the entire universe though.


Which would defeat the purpose, because in order to take over the sector you would have to destroy everything in it.

there is enough time between spawns of buildings to plop your own trading station and call it your own...
or just write your own script that makes it slightly easyer.
Up to you


_________________
in the market for a new sig, willing to pay 1 billion credits for a proper sig...
Back to top
View user's profile Send private message
apricotslice





Joined: 16 May 2004
Posts: 13628 on topic
Location: In the Hunter Legacy Universe
Thank you for registering your game
PostPosted: Wed, 3. Jun 09, 00:46    Post subject: Reply with quote Print

When do they get supplied with ammo ?

If they get an automatic resupply in the middle of a battle, then thats making things a lot harder. They SHOULD be able to run out in a battle, same as the player can.

But resupply when there is no target in the sector, is fine.

That being said though, if the ammo is on the other side of the universe, how exactly do they get their resupply and why is it ok for the npc's to get it automatically and the player have to move either the ship or the ammo to the ship ?

My way of looking at it is if the pirate chooses a gun with ammo, then that is potentially restricting the fire rate of that ship to the ammo on hand. It should not be automatically resupplied in any way other than the player has to go through, and when the universe has no supply of the ammo, the gun shouldnt be able to fire. That doesnt mean that it cannot be simulated by adding the ammo to pirate bases, letting the npc supply chain keep them topped up, and changing the job for the pirate ship to dock at nearest pirate station and get ammo, between battles.


_________________
Apricot Mapping Services HQ
CLICK HERE for X3 Handbook; TC and AP Guides, Mods, Scripts & Downloads
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Lancefighter





Joined: 19 Dec 2004
Posts: 2936 on topic

Thank you for registering your game
PostPosted: Wed, 3. Jun 09, 00:55    Post subject: Reply with quote Print

Judging from the files in the download (specifically, signal attacked scripts), I assume it is done as combat starts...

I personally have no problem with this - its a gazz script designed to make battles useful. After all, ive seen xenon ships with gauss cannons spawn with 2 or 3 crates of ammo.. Useless.

However it is, as stated, a npc cheat. Use it, or dont... If you dont, feel free to write your own script instead..


_________________
in the market for a new sig, willing to pay 1 billion credits for a proper sig...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic Reply to topic Goto page 1, 2, 3, 4, 5  Next
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Control Panel
Login Data
The time now is Tue, 17. Oct 17, 22:20

All times are GMT + 2 Hours


Board Security

Copyright © EGOSOFT 1989-2017
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.66770 seconds, sql queries = 29