Talk:Developer Mode

From OniGalore
Jump to: navigation, search

More testing needed

At some point, someone should review what hotkeys definitely work on the Windows side, because this questionable PC I'm testing on does not seem to do some of the things Windows is supposed to do (and in some cases things the Mac can do), like Single Step mode, f2/f3-binding, screenshots, and adding flags (actually, I seem to be able to add a flag, but show_flags is not displaying flags so I can't confirm; all I know is that hitting Delete Flag after hitting Add Flag does not return an error about not being close enough to a flag). In some cases I have marked these things as working just because I'm told they are supposed to work in Windows. --Iritscen (talk) 01:04, 7 May 2013 (CEST)

I seem to recall the f2/f3 binding works only when you are recording a movie. Those keys were used in the arena levels. I may have time tomorrow to give it a try on the Mac. EdT (talk)
Ah, that's it! I don't remember reading that anywhere... maybe I missed it. I see these actually work on Mac too, nice. --Iritscen (talk) 16:06, 7 May 2013 (CEST)
It is written in the arena_menu_bsl "F2 and F3 are only active when Oni is recording a movie" EdT (talk)
geyser did in fact document this on the Binding page, I just didn't read carefully enough. --Iritscen (talk) 16:46, 7 May 2013 (CEST)

Insert key on Macs

Putting this extension to the article here to allow responses to it, but also because it only interests Mac users who want to place flags in Dev Mode; a rather niche audience.

The Insert key never matters at all to a Mac user until one day it becomes the most important key on the keyboard. That is because Mac keyboards have for years lacked any key that says Insert or Ins. Well, modern apps tend to not use this key, so it only matters in certain situations. In Oni, the DevMode "addflag" key is Ctrl+Shift+Ins. Now, admittedly adding flags is not that useful when you can't save the flag location into the game data as Bungie once could. But I thought I would gather some information on how to reproduce the "Insert" key, and just leave it here for anyone who's interested, because it's a rather confusing subject. The following keys or combinations have been claimed by various parties, including Apple, to produce an Insert-key event on certain systems (or then again, it may all be an elaborate prank). And remember, you have to add Ctrl+Shift to Insert in order for it to become the "addflag" key Oni is looking for:

  • Help (don't have a Help key? Me neither...)
  • fn+Help
  • Ctrl+fn+m (I think Ctrl may be unneeded on each of these combos, but just for thoroughness' sake...)
  • Ctrl+fn+Home
  • Ctrl+fn+Return
  • Ctrl+fn+Enter
  • Shift+Clear (to turn off numlock), then NumPad0
  • fn+NumPad0
  • Shift+Option+Command+NumPad0 (now surely you must be joking, right?)

Well, lots of options, that's, uh, nice, right? However, none of these seem to work on my Mac (mid-2011 iMac). It's difficult to even know what app to test these in, as I can't know if they are even coded to look for a key that isn't supposed to exist on Macs. But I'd love to hear feedback from other Mac users on what works for them. --Iritscen (talk) 04:38, 7 May 2013 (CEST)

I have a keyboard that has the Ins key which is the same as the Help key except I need to press the fn key along with the help key. However pressing the Ctrl+Shift+Ins or Ctrl+Shift+Ins+fn has no effect, no message in the console and no flags appear. EdT (talk)
I didn't remember to mention this above, but I assume you did "show_flags=1" first? It actually won't print a message to console whether it succeeds or fails, so you have to be able to see flags to know if it works. --Iritscen (talk) 16:06, 7 May 2013 (CEST)
Of course I used show_flags=1. Also I did the same test as you did, insert flag then delete flag, however I got the message "not close enough to flag" so that shows a flag was not added. EdT (talk)
Okay, then Oni probably just doesn't recognize Insert on Macs (probably a side effect of how we have to simulate the Ins key event instead of pushing the actual key, but who knows). Since flags can't be written to disk anyway, this is a fairly useless feature. --Iritscen (talk) 16:46, 7 May 2013 (CEST)

Playing dead and camera cycling

I'm surprised to see that this works for EdT, since on my Mac, Ctrl+F7 has the same effect as F7 -- it cycles weapons. --Iritscen (talk) 16:46, 7 May 2013 (CEST)

Playing dead has worked on the Mac since the PPC version was patched to enable Dev Mode. Also Cycle active camera has worked since then too. EdT (talk)
Strange, I wonder what gives with my Mac, then, since it only seems to cycle weapons for me. Oh well, it's a more amusing feature than a useful one. I'll try the Active Camera tip you mentioned when I'm back on my Mac. --Iritscen (talk) 21:06, 7 May 2013 (CEST)
Aha! I had hit the Cycle Active Camera button by accident a couple times while trying to plant flags and wondered why half the level had gone invisible :-) Mystery solved. I guess what happens is that the occlusion solution of the normal camera is preserved and not updated when you switch to the secondary camera, so you are able to see what polys were being drawn while the player's view was oriented a certain way. Neat. --Iritscen (talk) 01:29, 8 May 2013 (CEST)