Ctrl - Alt - O drops to desktop

enneract

Chieftain
Joined
Dec 30, 2008
Messages
3
I'm having a problem using the BAT mod (which, if I am reading the description correctly, also includes the BUG mod?). Very simply, I know that the mod is working, as the UI modifications and unit\city graphics are in place, but when I use the key combination (ctrl - alt - o) to bring up the options screen for bug, the game simply minimizes.

No fancy install done, just ran the BAT mod installer with standard options.

Making use of this forum's search functionality resulted in finding no similar problems, so I'm posting~

I haven't ever seen this function work - if it is supposed to bring up an outside utility, my operating environment may be preventing this... but I cant find any such utility, so I am assuming it is an ingame screen.
 
It should bring up an in-game options screen that looks very similar to the standard Civ4 options screen accessed with CTRL + O. Does the game truly minimize and stay working (ALT + TAB to reenter it) or does it crash to desktop requiring you to restart your game?

I'm wondering if you have that key combo assigned through some other Windows application. I assign keys such as ALT + CTRL + W to open my web browser, but I cannot check right now if those take precedence over those in Civ. I would expect not, but does some other application/utility launch, or do you just get to the desktop?
 
It just minimizes, not crashes.

And I hadnt thought of that, but in hindsight, it is rather likely - I run an alternate windows shell (geoshell), so I will investigate if that is a shortcut for that...

Is there any way I can change the key combination for the bug mod options?

*edit*

Thats exactly what it was, heh. All fixed.
 
Excellent. I'm glad you solved it yourself. I'm working on moving all of BUG's shortcut keys to XML, but for now you can change this one in Python by modifying the file

Assets/Python/BUG/BugOptionsEventManager.py​

on lines 23-4:

Code:
22 	# Check if Alt + Ctrl + O or ALT + J were hit (the latter for Ruff's users).
23 	if ([B](theKey == int(InputTypes.KB_O) and self.eventMgr.bAlt and self.eventMgr.bCtrl)[/B]
24 	or (theKey == int(InputTypes.KB_J) and self.eventMgr.bAlt)):
25 		CvScreensInterface.showBugOptionsScreen()
26 		return 1

For example, changing it to ALT + SHIFT + O would look like this:

Code:
if ((theKey == int(InputTypes.KB_O) and self.eventMgr.bAlt and [b]self.eventMgr.bShift[/B])
 
Excellent. I'm glad you solved it yourself. I'm working on moving all of BUG's shortcut keys to XML, but for now you can change this one in Python by modifying the file

Assets/Python/BUG/BugOptionsEventManager.py​

on lines 23-4:

Code:
22 	# Check if Alt + Ctrl + O or ALT + J were hit (the latter for Ruff's users).
23 	if ([B](theKey == int(InputTypes.KB_O) and self.eventMgr.bAlt and self.eventMgr.bCtrl)[/B]
24 	or (theKey == int(InputTypes.KB_J) and self.eventMgr.bAlt)):
25 		CvScreensInterface.showBugOptionsScreen()
26 		return 1

For example, changing it to ALT + SHIFT + O would look like this:

Code:
if ((theKey == int(InputTypes.KB_O) and self.eventMgr.bAlt and [b]self.eventMgr.bShift[/B])

Alright, cool.

Sorry for bugging (heh, heh) about such an unrelated problem, but until this, I had no idea that this shell even had keyboard shortcuts (which is going to prove useful in itself), as it isnt documented very well.

I will say though, that even bore I had been able to access the options for this, my only complaint had been that the reminder notice had been getting annoying - it is a very good mod, right out of the box, much more complete and polished than one normally sees in modding communities.

Also, I think I'm gonna have to learn python - I've heard the talk about how wonderful\elegant\simple\powerful it is, but I hadnt actually seen any python code until now, and I must admit it looks great~.
 
I will say though, that even bore I had been able to access the options for this, my only complaint had been that the reminder notice had been getting annoying

Do you mean the reminder about CTRL + ALT + O? You can turn that off in the System tab of the options screen.

I resisted learning Python for a long time due to the whitespace-is-syntax feature, but I love it now. It's expressive and powerful, and modding Civ4 was a great way to learn it. It helped a ton having a large base of working code that I could tweak in small ways and see a difference. :D
 
Back
Top Bottom