|
|
 |
View previous topic :: View next topic |
 |
|
|
|
|
Author |
Message |
|
|
|
|
|
apricotslice
Joined: 16 May 2004 Posts: 13376 on topic Location: Mapping beyond the Unknown Regions.

|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
DrBullwinkle

Joined: 17 Dec 2011 Posts: 3761 on topic Location: Boston, USA

|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
apricotslice
Joined: 16 May 2004 Posts: 13376 on topic Location: Mapping beyond the Unknown Regions.

|
Posted: Fri, 29. Jun 12, 02:33 Post subject: |
|
|
| DrBullwinkle wrote: |
| apricotslice wrote: |
| None of that addresses the issue of having to reassign the hotkeys to keys every time you start a new game. |
My solution does. It completely fixes the broken saved game. You will have to reassign ONE hotkey (or, possibly, a small number), and you will only have to reassign it/them once.
Try it before complaining about it.
. |
Game start = zero save games. How does fixing a save game affect a game start ?
I repeat, every time you start a new game, all hotkey assignments are removed, including the custom saves of hotkeys.
Try it yourself.
_________________ Apricot Mapping Services HQ
CLICK HERE for : X3R/TC Handbook; X3R, TC and AP Guides, Mods, & Scripts; X3R, TC and AP Downloads
Apricot X3 Forum |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
DrBullwinkle

Joined: 17 Dec 2011 Posts: 3761 on topic Location: Boston, USA

|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
apricotslice
Joined: 16 May 2004 Posts: 13376 on topic Location: Mapping beyond the Unknown Regions.

|
Posted: Fri, 29. Jun 12, 03:09 Post subject: |
|
|
| DrBullwinkle wrote: |
| apricotslice wrote: |
| every time you start a new game, all hotkey assignments are removed |
As far as I know, the game has always worked that way. Is your comment relevant to this thread? |
AP yes. TC and before, no. In the past, hotkeys got assigned once, and you never needed to reassign them again unless you reinstalled the game.
The entire way hotkeys are done was rewritten for AP, to solve some issues that were in TC, like multiple installs of the same hotkey.
Hotkeys disappearing is only PART of the problem I originally brought up.
I want to WHOLE problem solved, not just that one bit of it.
_________________ Apricot Mapping Services HQ
CLICK HERE for : X3R/TC Handbook; X3R, TC and AP Guides, Mods, & Scripts; X3R, TC and AP Downloads
Apricot X3 Forum |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
DrBullwinkle

Joined: 17 Dec 2011 Posts: 3761 on topic Location: Boston, USA

|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
apricotslice
Joined: 16 May 2004 Posts: 13376 on topic Location: Mapping beyond the Unknown Regions.

|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Cycrow Moderator (Script&Mod)


Joined: 15 Nov 2004 Posts: 19894 on topic Location: London

|
Posted: Sun, 1. Jul 12, 18:39 Post subject: |
|
|
the only change to hotkeys in AP was that it now checks if an existing hotkey is already registered, and overrights instead of adds a new one.
This has exposed an existing problem that was been present since X3 Reunion. Just hidden.
The hotkey system hasn't been rewritten, despite what you may think
there was no change to how the keys are assigned or stored.
are you sure u've set it to use the correct profile ? as the assigned keys are stored in the profile and it its not set, it'll load the defaults which wont include the added hotkeys.
i've started lots of TC and AP games while testings, and they both work in the same way
_________________ My Scripts | MY X3TC Scripts | X3 Plugin Manager | Custom Gui |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Ook
Joined: 28 Dec 2003 Posts: 39 on topic

|
Posted: Sun, 1. Jul 12, 21:06 Post subject: |
|
|
| Cycrow wrote: |
the only change to hotkeys in AP was that it now checks if an existing hotkey is already registered, and overrights instead of adds a new one.
This has exposed an existing problem that was been present since X3 Reunion. Just hidden.
The hotkey system hasn't been rewritten, despite what you may think
there was no change to how the keys are assigned or stored.
are you sure u've set it to use the correct profile ? as the assigned keys are stored in the profile and it its not set, it'll load the defaults which wont include the added hotkeys.
i've started lots of TC and AP games while testings, and they both work in the same way |
Any plans to release an update that fixes this bug?
As atm X3AP will only allow a max of 11 hotkeys here & any new script added removes the existing ones from the menu.
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
DrBullwinkle

Joined: 17 Dec 2011 Posts: 3761 on topic Location: Boston, USA

|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
apricotslice
Joined: 16 May 2004 Posts: 13376 on topic Location: Mapping beyond the Unknown Regions.

|
Posted: Mon, 2. Jul 12, 02:39 Post subject: |
|
|
| Cycrow wrote: |
| are you sure u've set it to use the correct profile ? as the assigned keys are stored in the profile and it its not set, it'll load the defaults which wont include the added hotkeys. |
All the profiles, including the default, get wiped as soon as you start a new game.
The profiles are either not being stored outside of the save game, or are being overwritten on a new game start.
Either way, each time you start a new game, you have to reassign all of the hotkeys again.
Whatever you did, you fixed some bugs in TC but created worse ones in AP.
_________________ Apricot Mapping Services HQ
CLICK HERE for : X3R/TC Handbook; X3R, TC and AP Guides, Mods, & Scripts; X3R, TC and AP Downloads
Apricot X3 Forum |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
kurush
 
Joined: 07 Nov 2005 Posts: 3856 on topic

|
Posted: Thu, 5. Jul 12, 06:27 Post subject: |
|
|
Well, this method might be easy but it didn't work for me I was always getting the same number from this function no matter what I pass as <name> . I even wrote a loop with a changing name to see if I get a different number eventually - it went infinite
The only thing that seemingly helped was running Cycrow's code snippet followed by these two lines:
| Code: |
$hotkeys = array alloc: size=0
set global variable: name='manager.hotkeys' value=$hotkeys
|
And then hacking several scripts not using the hotkey manager to re-register their hotkeys.
If somebody wishes to repeat that, keep in mind that hotkeys reappear only after a reload.
_________________
Overtuning assistance in Albion Prelude
Want to run any script or mod without ***modified***? Click here |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
DrBullwinkle

Joined: 17 Dec 2011 Posts: 3761 on topic Location: Boston, USA

|
Posted: Thu, 5. Jul 12, 06:43 Post subject: |
|
|
| kurush wrote: |
this method might be easy but it didn't work for me I was always getting the same number from this function no matter what I pass as <name> . |
Maybe you out-smarted the script?
I do not understand your test... you know that you are supposed to KEEP the old hotkey and ADD a new one, right? What number are you talking about? I tested by opening up the Controls / Interface menu and checking the availability of the hotkey there.
I can see how it might be necessary to do it more than once. Just keep adding hotkeys until they "stick". Obviously, save after adding a hotkey in order to save the incremented counter.
If I understand Cycrow's description of the bug, it should increment the counter each time you add a different hotkey (different name).
I did, finally, experience the bug, and adding a single extra hotkey fixed the problem completely.
YMMV, of course.
YMMV = Your Mileage May Vary. It is probably an American joke; means that your experience may not be the same as mine.
_________________ Peace through superior firepower
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software (DCS) | Ship Tricks: Mini-Guides (with Video) |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
kurush
 
Joined: 07 Nov 2005 Posts: 3856 on topic

 |
Posted: Thu, 5. Jul 12, 07:47 Post subject: |
|
|
| DrBullwinkle wrote: |
I do not understand your test... you know that you are supposed to KEEP the old hotkey and ADD a new one, right?
|
I definitely understand that. I am talking about the handle number returned by the register hotkey script call. When this issue occurs, the number returned is the same for any number of hotkeys you are trying to register with next hotkey overwriting the one registered before it.
| DrBullwinkle wrote: |
What number are you talking about? I tested by opening up the Controls / Interface menu and checking the availability of the hotkey there.
|
Not sure if there is another way to check this, we should be on the same page here
| DrBullwinkle wrote: |
I can see how it might be necessary to do it more than once. Just keep adding hotkeys until they "stick". Obviously, save after adding a hotkey in order to save the incremented counter.
|
Unfortunately, it doesn't stick. At least not if you add hotkeys for the same script file. My test went through ~6000 attempts of registering a hotkey before I killed X3AP.exe.
| DrBullwinkle wrote: |
If I understand Cycrow's description of the bug, it should increment the counter each time you add a different hotkey (different name).
I did, finally, experience the bug, and adding a single extra hotkey fixed the problem completely.
|
It might work in some special case, i.e. when only one hotkey was unregistered. It didn't work in my situation. Fortunately, the nuclear option seems to work. I am actually not sure why can renaming work based on Cycrow's explanation.
As I understand it, they have a collection there where some elements can get marked as "unregistered", but when adding a hotkey they actually use the # of registered hotkeys as a new index instead of either searching for one those "unregistered" elements or adding a new one at the end.
_________________
Overtuning assistance in Albion Prelude
Want to run any script or mod without ***modified***? Click here
Last edited by kurush on Thu, 5. Jul 12, 07:53; edited 1 time in total |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
DrBullwinkle

Joined: 17 Dec 2011 Posts: 3761 on topic Location: Boston, USA

|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
|
|
 |
|
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
|
 |
|
|
|
|
|