[SCRIPT] Improved Races: Chaos Edition v1.09 (25th June)

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

User avatar
Jack08
Posts: 2993
Joined: Sun, 25. Dec 05, 10:42
x3tc

Post by Jack08 »

navetta wrote:im getting a complete freeze after about 5 minutes in the game, audio loops, can only open the task manager and kill x3tc.

the mods im using are srm cmod and IR, i am afraid the issue is IR because i have been using srm and cmod fo ages and this issue happened after a couple hours running IR.

the freezes happens in zyarth's dominion, the xenon are invading the sector with 2 Z, 1 J, 1 C and about 100ish fighters, i am using a valhalla and a woden.

i have tried using cycrow's cheat package and destroy the entire sector and my valhalla but even if i jump to another sector the issue still happens

hope someone can help me fix this, thanks
Reboot your computer, if problems persists please report back with as much information as possible
(The first part of this message was NOT a joke, Sounds like a memory address corruption within windows - we have had issues with them in the past)

IR Is not capable of causing these issues by itself, and the cause stil remains unknown, its probably something within SRM or CMOD that is never accessed by the game until IR gets involved, but thats just theory (Actually, Most of this message is still theory, all we really know is that reboot fixes it and a memory corruption is the only thing that makes any sence)
[ external image ]
"One sure mark of a fool is to dismiss anything that falls outside his experience as being impossible."
―Farengar Secret-Fire
navetta
Posts: 415
Joined: Wed, 19. May 10, 20:24
x3ap

Post by navetta »

i have uploaded the save game, try it if you have some time
http://www.megaupload.com/?d=B39HLSCC
Thechosenone92
Posts: 29
Joined: Fri, 4. Feb 11, 09:54
x3ap

Post by Thechosenone92 »

hello jack08, first let me say thanks for all the work you have done on IR and IR:C, next i'd like to bring to attention a issue with using LVs !signal.killed fix (least I'm 80% sure it is).

when i was using LV's RRF i had a CTD when a Kha'ak Scout was destroyed (by me, npcs, or cheat), i posted this thread to try and fix the issue. eventually as seen in the thread i fixed it by using JMCorp's kill all ships script, i later figured out that the script used the "warp out of existence" command that doesn't trigger !signal.killed. i received another CTD causing ship, at witch time i used JMCorp's script again to kill said ship and uninstalled RRF and installed the original IR 15.21. that let me play for a couple months without a CTD. recently i started a new game with the same set of scripts(list below), after updating IR 15.21 to IR:C 1.07 i am receiving the same CTD (i have not tracked down the ship yet but plan to tomorrow) leading me to believe that LV's !signal.killed fix is causing this (and may be causing navetta's freeze aswell). it would be a shame to have to stop using IR:C because of this, to my knowledge IR:C is the only military war script that is being actively developed. (note i mean no offense to LV's !signal.killed fix, this is most likely a conflict with another mod as not alot of people have reported having a similar CTD/freeze, but i cannot for the life of me think of witch one would cause this.)

[ external image ]
[ external image ]

1-13=Vanilla
14=complex cleaner
15=SRM main
16=SRM hull med
17=CMOD
18=alpha ppc
19=Cmod MRM
20=SRM Trials
21=lowpolly roids
22=no ads/small rocks
23=aldrinrockresize
24=x3:r shadders
25=emp
26=nostation wrecks
27=comm range
28=black HUD
29=sunblade's flat galaxy map tri;;yaki armada

USC merchant marines(merged with srm jobs)
tradeoverview
nofog/extra view distance
lost numbers
srm weapons dealers
srm shipyards
srm jobs
amurph0 shipyards
no ad signs
Morgans_CCExtension_0.9
missile safety
no rep loss from gates
enhanced equipment spawner
enhanced communication system
dockware manager
convoy control
cmod fac scripts
auto aim
ai ammo cheat
Anarkis Defense System
pirate guild
plot reset
out of system damage rebalance
MARS
numeric ranks
litcubes missile boats
Operation Loki
Bounce


wirtchaftshaendler
warenlogistiksoftware
waffensystem_codea
waffensystem_mefos
schifffunktionstasten
militaertransport
handelsvertretung
grundgehalt
befehlsbiblionthek
personaltransporter

sorry for all the german there from lucike
User avatar
Jack08
Posts: 2993
Joined: Sun, 25. Dec 05, 10:42
x3tc

Post by Jack08 »

@Thechosenone92

Code: Select all

    $Dirty = [FALSE]
    $x = get ship array: of race $ship.race class/type=$eval
    if not size of array $x
      $Dirty = [TRUE] 
      $existing.ship = create ship: type=$eval owner={Unknown} addto=null x=0 y=0 z=0
      $existing.ship->disable ship rebuild
      $existing.ship->set StartAction enabled to [FALSE]
      $existing.ship->set race logic control enabled to [FALSE]
      $existing.ship->add secondary signal: signal={SIGNAL_KILLED}, script='plugin.ir.ship.choose.killed', prio=0, name='tmp.kill'
    end
    skip if $Dirty 
      $existing.ship = $x[0]
     
    if not $existing.ship->is of class $class
      remove element from array $type at index $temp
    else if not $existing.ship->get maximum laser strength
      remove element from array $type at index $temp
    else if $existing.ship->is of class {TL 2032}
      skip if $class == {TL 2032} 
        remove element from array $type at index $temp
    else if $existing.ship->is of class {TP 2030}
      skip if $class == {TP 2030} 
        remove element from array $type at index $temp
    else if $existing.ship->is of class {TS 2031}
      skip if $class == {TS 2031} 
        remove element from array $type at index $temp
    end
     
    if $existing.ship->is of class {M3 2023}
      if $existing.ship->is missile boat
        remove element from array $type at index $temp
      end
    end
     
    if $existing.ship->is of class {M7 2027}
      if get global variable: name='plugin.ir.disable.m7m'
        if $existing.ship->is missile boat
          remove element from array $type at index $temp
        end
      end
    end
     
    if $Dirty 
      $existing.ship->destruct: show no explosion=[TRUE]
    end
Its becoming strongly evident that X3 does not like this code - please try this script(Right Click, Save As) and tell me if the crashing stops

In this case, its problem is probably not the signal script alone but rather coupled with the creation and destruction of ships within the same script execution period (No sleeps)

The script i have posted adds a sleep of 100 m/s and removes the signal


Also a Note to Everyone:
There have been known issues with Pirate Guild and IR conflicting in the past, the cause of the confliction is unknown as are the results of the confliction... If you are having freezing problems the first thing i would suggest would be to create a backup save and remove pirate guild

Symptoms of Confliction Are:
CTD
Slowness
Freezing

Serial Kicked and i have both been over pirate guild and failed to find the cause of any confliction, but it does exist and no one knows why, it also doesn't effect everyone - so don't remove pirate guild just because it might effect you in the future - do it as a debug test, as it may or may not be effecting you at all
[ external image ]
"One sure mark of a fool is to dismiss anything that falls outside his experience as being impossible."
―Farengar Secret-Fire
Thechosenone92
Posts: 29
Joined: Fri, 4. Feb 11, 09:54
x3ap

Post by Thechosenone92 »

@jack08 just tried both possible fixs, removing pirates guild caused my game to CTD faster (in less then 2 mins) and the supplied script made my game crash aswell but it took a fair bit longer (7 mins instead of about 5 with 10x seta).
User avatar
Jack08
Posts: 2993
Joined: Sun, 25. Dec 05, 10:42
x3tc

Post by Jack08 »

Thechosenone92 wrote:@jack08 just tried both possible fixs, removing pirates guild caused my game to CTD faster (in less then 2 mins) and the supplied script made my game crash aswell but it took a fair bit longer (7 mins instead of about 5 with 10x seta).
Is this with a new game? or a save game?

Either way, Ive updated the above download link - please try it once more
[ external image ]
"One sure mark of a fool is to dismiss anything that falls outside his experience as being impossible."
―Farengar Secret-Fire
Thechosenone92
Posts: 29
Joined: Fri, 4. Feb 11, 09:54
x3ap

Post by Thechosenone92 »

Jack08 wrote:
Thechosenone92 wrote:@jack08 just tried both possible fixs, removing pirates guild caused my game to CTD faster (in less then 2 mins) and the supplied script made my game crash aswell but it took a fair bit longer (7 mins instead of about 5 with 10x seta).
Is this with a new game? or a save game?

Either way, Ive updated the above download link - please try it once more
with a saved game. same results with the updated script. i have about 20 hours put into this save, so it would take a while to try it with a new save.
User avatar
Jack08
Posts: 2993
Joined: Sun, 25. Dec 05, 10:42
x3tc

Post by Jack08 »

Thechosenone92 wrote:
Jack08 wrote:
Thechosenone92 wrote:@jack08 just tried both possible fixs, removing pirates guild caused my game to CTD faster (in less then 2 mins) and the supplied script made my game crash aswell but it took a fair bit longer (7 mins instead of about 5 with 10x seta).
Is this with a new game? or a save game?

Either way, Ive updated the above download link - please try it once more
with a saved game. same results with the updated script. i have about 20 hours put into this save, so it would take a while to try it with a new save.
Does it still happen if you initiate a universe clean from the IR Menu?
[ external image ]
"One sure mark of a fool is to dismiss anything that falls outside his experience as being impossible."
―Farengar Secret-Fire
Thechosenone92
Posts: 29
Joined: Fri, 4. Feb 11, 09:54
x3ap

Post by Thechosenone92 »

Jack08 wrote:
Thechosenone92 wrote:
Jack08 wrote:
Thechosenone92 wrote:@jack08 just tried both possible fixs, removing pirates guild caused my game to CTD faster (in less then 2 mins) and the supplied script made my game crash aswell but it took a fair bit longer (7 mins instead of about 5 with 10x seta).
Is this with a new game? or a save game?

Either way, Ive updated the above download link - please try it once more
with a saved game. same results with the updated script. i have about 20 hours put into this save, so it would take a while to try it with a new save.
Does it still happen if you initiate a universe clean from the IR Menu?
when i tried that before i made the post it crashed while cleaning pirates, this time it crashed while cleaning paranid. i don't think i have enough time on this save before it crashes. ill try and older save when i get back from doctors appointment.
Osiris454
Posts: 741
Joined: Tue, 4. Jan 11, 22:03
x3tc

Post by Osiris454 »

Hey Jack, when will the update to Chaos be completed? Bringing over the changes/bug fixes that djrygar put into IR 15.24.
User avatar
Jack08
Posts: 2993
Joined: Sun, 25. Dec 05, 10:42
x3tc

Post by Jack08 »

Osiris454 wrote:Hey Jack, when will the update to Chaos be completed? Bringing over the changes/bug fixes that djrygar put into IR 15.24.
It will be done when its done if it needs to be done.
Most of the fixes are not super important must fix gogogo... lol
[ external image ]
"One sure mark of a fool is to dismiss anything that falls outside his experience as being impossible."
―Farengar Secret-Fire
Osiris454
Posts: 741
Joined: Tue, 4. Jan 11, 22:03
x3tc

Post by Osiris454 »

Jack08 wrote:
Osiris454 wrote:Hey Jack, when will the update to Chaos be completed? Bringing over the changes/bug fixes that djrygar put into IR 15.24.
It will be done when its done if it needs to be done.
Most of the fixes are not super important must fix gogogo... lol
Gotcha. :D

I have however run into the 'abandoned ship leader thing' at least twice now. :oops:
Viviox
Posts: 59
Joined: Thu, 10. Jun 10, 06:45
x3ap

Post by Viviox »

can someone recommends a good Hotwar setting?

I'm currently in Bankrupted Assassin starts, with default enemy of Paranid and Boron. So, i thought i spice it up a bit by making Terran their enemy too, and so is Teladi. Next thing I noticed is that many of the sectors i visits have a lot of Paranid and Boron traders, even if its in Enemy zone (Teladi and Terran).

Don't the Paranid and Boron knows that they're the enemy of Taladi and Terran now, so that they stop visiting enemy sectors? They keep coming in non-stop one after another, and being killed by Guardians and and Military patrols.

I feel the default hot war Argon/Paranid, Boron/split are pretty boring. They don't fight as often, and when they do, they use a small assault fleet of about 7-15. The most I've seen so far was a fleet of 30x Terran fleet that attack a pirate sectors, and got destroyed in about 5 minutes.

If anyone have a good setting for Hotwar, I'd like to know. I prefer using Custom Start or Terran.
Stealth17
Posts: 325
Joined: Thu, 1. Nov 07, 19:11
x3tc

Post by Stealth17 »

Hey all,

I've just started a new game with this plugin and the other plugins needed and it installed just fine.

Now when I use the Alliance Tactical Network it's blank. Does that mean there are no fights anywhere? Does it mean there's just nothing going on or have I missed a setting somewhere?

Thanks!

Stealth
Like a thousand other commanders on a thousand other battlefields, I wait for the dawn...
Mizuchi
Posts: 806
Joined: Thu, 10. Feb 11, 05:48

Post by Mizuchi »

It either means that no one has started fighting yet (they might still be building up forces), or you're not of a suitable level of reputation for them to want to tell you what they're doing.

Either conditions are likely if you just started a new game. :)
Stealth17
Posts: 325
Joined: Thu, 1. Nov 07, 19:11
x3tc

Post by Stealth17 »

Mizuchi wrote:It either means that no one has started fighting yet (they might still be building up forces), or you're not of a suitable level of reputation for them to want to tell you what they're doing.

Either conditions are likely if you just started a new game. :)
Roger that, thanks for the lightning fast response :).
Like a thousand other commanders on a thousand other battlefields, I wait for the dawn...
Thechosenone92
Posts: 29
Joined: Fri, 4. Feb 11, 09:54
x3ap

Post by Thechosenone92 »

hello again jack08, i tried with the older save and the clean universe command worked but it crashed shortly after. this save is 20 mins prior to my main save that i was using.

EDIT: i might also add i have the same problem some people where having with the original IR where IR ATF was always aggressive, but regular ATF acted normal.
Last edited by Thechosenone92 on Sun, 22. May 11, 21:17, edited 1 time in total.
Stealth17
Posts: 325
Joined: Thu, 1. Nov 07, 19:11
x3tc

Post by Stealth17 »

Hey all,

I just started a new game with Improved Races: Chaos edition. I did a brand new install and patched X3TC to 3.10.

I've also installed CMod 4, NPC Salvagers and NPC Bailing. At this point I started experiencing random crashes. So I thought it was because of CMod4 and I uninstalled it but the crashes still keep happening.

Any idea what's going on and how to counteract it?

Thanks!

Stealth
Like a thousand other commanders on a thousand other battlefields, I wait for the dawn...
Ragemaster9999
Posts: 240
Joined: Mon, 17. May 10, 08:53
x4

Post by Ragemaster9999 »

Im getting really low fps, not sure what the cause of it is. At first I had way too many ships in sectors, there was usually several caps and lots of fighters per sector, not sure if this is a job problem or a IR problem. Anyways I installed a jobs file called SRM unleashed, and while it removed many many ships, its still kinda laggy.

1)Is there a specific jobs file to use with IR, one that "meshes" well.
2) How can i go about finding the source of my low fps? I think its a cpu/script file for sure, I can create a huge battle using cheats in vanilla and my fps is just fine.

p.s i just noticed about PG3 being installed and potentially have comflicts, ill try uninstalling PG3,
Stealth17
Posts: 325
Joined: Thu, 1. Nov 07, 19:11
x3tc

Post by Stealth17 »

Hey guys,

Just managed a really weird event.

I docked a bunch of salvaged ships at a shipyard and I wanted to sell them, only to see that they were in the process of being constructed...?? They were already at 100% health and not in need of repair, let alone reconstruction...

Because I'm very early into the game I didn't have the Trading System Extension yet so I had to dock to sell the ships, only to see that my ship too was being reconstructed. Right now my hull is slowly getting back up.

This is a major glitch in the Player Construction option.

Scripts I'm running
- IR: Chaos edition (obviously)
- NPC Salvagers
- NPC bailing

It's running on a X3TC 3.1

Can you please fix this? I like the feature but it's pretty broken right now...

Thanks!

Stealth
Like a thousand other commanders on a thousand other battlefields, I wait for the dawn...

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”