[SCR] NICE Interface Enhancement (v2.80, 31.12.11)

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
Gazz
Posts: 13244
Joined: Fri, 13. Jan 06, 16:39
x4

Post by Gazz »

Version 2.80 released.

Try to break it.

This version will badly spam your player log. Everytime you press a hotkey, the whole procedure is logged.
I still don't know at which point those ships are destroyed. Going in or going out?
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
Zaknafein
Posts: 384
Joined: Thu, 31. Mar 11, 20:48
xr

Post by Zaknafein »

cant play today but i will post it tommorrow.

situation when i get the bug: im in sector kindom end and my mammoth is in another one (idling, following me, etc , current command seems to not matter)

the point when it gets destroyed is just 1 second after u hit the hotkey (u can hit more often but it doesnt change anything because of the ship getting destroyed by just initially hitting it for one time).
just in the moment it pops up on the target monitor (i guess the moment the dummy is created in the player sector) the ship gets destroyed.

like i said, ill try new version tommorow, thx for still working on it.

greetings
Zaknafein
Posts: 384
Joined: Thu, 31. Mar 11, 20:48
xr

Post by Zaknafein »

i tried it with version 2.8 today by flying to Kindom End and using the hotkey...the ship didnt get destroyed...
so i reloaded my old savegame where i could reproduce the bug in the past and tried it now again and still no "destroyed by planet" o.O

did u fix anything?(i thought u only added the log function).
if not, this destroyed by planet thing seems to be random and not sector related or maybe sector related but randomly happening.


greetings
User avatar
Gazz
Posts: 13244
Joined: Fri, 13. Jan 06, 16:39
x4

Post by Gazz »

I added a possible fix but since I have no solid lead on the actual cause, I added logging as well.
Of course, I wouldn't mind if I hit the cause by accident...


Among other things, the "safe position finding" got a complete rewrite - again.
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
User avatar
Gazz
Posts: 13244
Joined: Fri, 13. Jan 06, 16:39
x4

Post by Gazz »

Someone told me that there were no more mysteriously destroyed ships over the last 3 days.

Can anyone confirm or deny that?

Would be nice if this thing finally worked for real. =P
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
Zaknafein
Posts: 384
Joined: Thu, 31. Mar 11, 20:48
xr

Post by Zaknafein »

that was me -.-
after a lot of using with different ships (ts,tl,m3,m6,m7) in many sectors and no accidents i thought it was bulletproof till i got suprised by this today :/

[ external image ]
User avatar
Gazz
Posts: 13244
Joined: Fri, 13. Jan 06, 16:39
x4

Post by Gazz »

That's useful information, though.
And precisely why I spammed your log file. =P
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
Zaknafein
Posts: 384
Joined: Thu, 31. Mar 11, 20:48
xr

Post by Zaknafein »

i forgot to mention that i have a safe like 5 seconds ago again and i can test some stuff now :)

tried it with my other ships and here´s the result(all destroyed)

[ external image ]

/edit: the last 3 entrys are kinda offtopic, dont know how they slipped in :)

greetings
dblade
Posts: 151
Joined: Fri, 20. Jan 12, 05:13
x3tc

Post by dblade »

I could always try this script out, but maybe someone won't mind answering a quick q.

If I wanted to setup a hokey where it would make my M6 attack shields of a pre-saved target (or even my current target) can it be done w/this script?

Just thinking about how much of pita it was to board the Bala Gi orca when changing playership between my M6 and Scabbard (to execute boarding manually) :)
dizzysoul
Posts: 22
Joined: Wed, 22. Feb 12, 01:34

Post by dizzysoul »

I'm having a problem where this script causing the game to freeze after I issue a command. This issue seems to appear randomly, but most often when I am pairing an object with a hotkey. (hitting the key six times)

The game will completely freeze, forcing me to Ctrl+Alt+Del and force close the game.

I'm currently running AP 2.0 through Steam with the latest XRM, Bonus Pack, and the following mods using Plugin Manager:

Anarkis Defense
Bounce Fix (but not enabled)
Dock Lockup Fix
FDNL Lite
Follow Me
Gates No Rep Loss
Jump Fix
Marine Repairs
NPC Bailing
Numeric Ranks
Pirate Guild
Pure X HUD
Rename Ships with Expressions
Salvage Commands and NPC
Station Finance Manager
Turret On/Off
Trade MK3 Improved
Yaki Armada

There shouldn't be any other conflicting scripts(most of them are yous :D), and I know for a fact it's the NICE script that is freezing my game. If you need me to provide any further info, please let me know. Thank you for the wonderful script!
User avatar
Gazz
Posts: 13244
Joined: Fri, 13. Jan 06, 16:39
x4

Post by Gazz »

That's possible but I have never been able to reproduce it.
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
User avatar
akeelah
Posts: 231
Joined: Fri, 14. Mar 08, 17:01
x3tc

Post by akeelah »

With regard to the problem of ships being destroyed by planets, perhaps this will help.

I had the same problem with the Reunion version: hot-keyed ships being destroyed immediately upon "popping up" in certain sectors, particularly Montalaar and Split Fire. I tracked it down to an apparent typo. After correcting it (as detailed in the last post on this page), the problem vanished and I played on for several months without losing a single ship to a planet. In the process, I became utterly addicted to this plugin.

Then I started playing AP 2.0, and after installing the TC version (v279), I noticed the same problem. Fortunately, the same fix appears to work. I changed line 707 in the file plugin.gz.hk.nice.main.xml from

Code: Select all

707  $Target.Old ->ignore collisions: [TRUE]
to

Code: Select all

707  $Target ->ignore collisions: [TRUE]
Bingo! No more ships being destroyed by planets (at least in limited testing). Give it a try; it worked for me.

Unfortunately, it does not appear to correct the game-freezing problem. I've now seen at least one occurrence of that problem since making the above change. More testing to be done…

I'd sure hate to see this plugin die as a result of this game-freezing problem -- but it is a show-stopper. I'll keep testing to see if I can find a way to reproduce it reliably.
User avatar
akeelah
Posts: 231
Joined: Fri, 14. Mar 08, 17:01
x3tc

Baby steps...

Post by akeelah »

Some progress today. Playing time has been very limited of late, but I happened upon a way to reproduce the game-freeze problem reliably. I even cobbled together an inelegant, but seemingly effective, workaround. To reproduce the problem, press a NICE hotkey when:

1. The target ship is not in the same sector as the Player Ship
2. The target ship is running one of the standard Move To… commands
3. The target ship and it's Move To… destination are in different sectors

The game freezes as soon as the hotkey is released -- every time. The target ship does NOT "pop up" in the player's sector, and Betty does NOT announce it. The game must be forcibly quit.

Note that if the target ship is running a Jump To… command, the game does NOT freeze. Go figure. There may be other circumstances that can reproduce the problem, but this is the only one I've identified so far. Target-ship commands that definitely cause the freeze:

Move To Position…
Fly To Sector…
Dock at...
Follow Me
Fly Through Gate… (Explorer Command Software required)

I have experimented with different target ships in different sectors; with the Player Ship in different sectors; even with different saved games on different computers. The results are 100% repeatable.

Temporary workaround: interrupt the target ship with a script that does nothing for 3-5 seconds just before moving it into the Player's Sector. This seems to prevent the game freeze, and the target ship resumes what it was doing as soon as it is moved back to its original sector.

There is one exception that I'm aware of: If the target ship is running the Fly Through Gate… command when it is interrupted as above, it will not successfully resume the command upon being returned to its sector. It will simply do nothing for a few seconds, then switch to Command: None, and notify the player if so configured. So for the time being, I'm checking to see if the target ship is running the Fly Through Gate… command, saving the destination gate prior to "popping up" in the Player's sector, and then re-issuing the Fly Through Gate… command upon returning the target ship to its sector. A bit ham-fisted I know, but it works.

Hopefully this will help lead to a "proper" solution. In the meantime, this keeps the game from freezing. :P
0o0o0
Posts: 93
Joined: Sun, 6. Mar 11, 19:33
x3ap

Post by 0o0o0 »

Anybody have NICE working with AP 2.5? I just started a new game and haven't been able to assign NICE hotkeys. the menu hotkey shows up but none of the others do. Any ideas?
foxhound_alfa
Posts: 49
Joined: Wed, 9. Aug 06, 09:33

Post by foxhound_alfa »

Aside from the known bugs mentioned elsewhere in this thread, the latest NICE (english) is working with my AP 2.5.

It's worth noting that I also use Cycrow's Plugin Manager, Community Plugin Configuration, Hotkey Manager, and Ware Manager.

I have no clue whether these things being present makes a difference, but I'd certainly try installing NICE via said program to rule out the possibility, since mine works.
0o0o0
Posts: 93
Joined: Sun, 6. Mar 11, 19:33
x3ap

Post by 0o0o0 »

I've tried it several ways so far - using plugin manager, fresh installs, even just vanilla and NICE only. All I can see is the menu hotkey and none of the others. Anyone else having problems?
anthonysavatar
Posts: 20
Joined: Thu, 11. May 06, 13:36
x3ap

Post by anthonysavatar »

This plugin is great! It's so nice to give orders without navigating menus constantly.

I am noticing a few oddities though. Issuing commands and setting targets seem to work fine. I can pull up the nice message log as well but it is always blank. I assume to get things to appear in the log one has to set a target to notify with a 7x hotkey press and then issue it an order.

This is in AP 2.5.1. I have a few other mods installed, the only mod file that gets overwritten by nice is the eyetracking script in mars. It looks like the one in nice has a newer version number though. That reminds me, I can't seem to get the eyetracking orders to work either.

I'll give it a go in vanilla AP then TC to see if it's my other mods.
anthonysavatar
Posts: 20
Joined: Thu, 11. May 06, 13:36
x3ap

Post by anthonysavatar »

Everything seems to be working after doing a fresh install of AP 2.5.1. I'm also using Cycrow's plugin, hotkeys, and ware managers.
User avatar
Brinnie
Posts: 909
Joined: Mon, 5. Jun 06, 08:26
x3tc

Post by Brinnie »

anthonysavatar wrote:Everything seems to be working after doing a fresh install of AP 2.5.1. I'm also using Cycrow's plugin, hotkeys, and ware managers.
Did you use the plugin manager to install the script? I am also using it for AP and it seems to work fine but I had to install it manually, when I used the PM to install I only had the key to config NICE in control/interface the other 10 were missing.
After a couple of hours play the only undesirable thing that happened is that when I selected an out of sector Magnatar to issue a command it must have temporarily appeared in my backside. and my Heavy Nemesis went BOOOOOMmm.


**************
Update:
**************

I like the script but for some reason I have problems with ships getting destroyed or even mysteriously disappearing when I use a hotkey if they are out of sector or docked at the time.

Being aware of this problem I try to avoid using the shortcuts on ships that are not in flight in the same sector that I am in, but sometime I hit the wrong key.
So reluctantly I will have to uninstall this script unless there is a way to make it so that hotkeys are disabled when their targets are out of sector or docked.
ptb_ptb
Posts: 142
Joined: Wed, 5. Sep 12, 18:56

Post by ptb_ptb »

Brinnie wrote:After a couple of hours play the only undesirable thing that happened is that when I selected an out of sector Magnatar to issue a command it must have temporarily appeared in my backside. and my Heavy Nemesis went BOOOOOMmm.
Do you have BOUNCE installed? It should help with some BOOOOMmm type problems (although I think it probably wouldn't help if hostile ships are nearby).

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