Jump to content
SubSpace Forum Network

Recommended Posts

Posted (edited)

Crescendo and I had a conversation in Chaos yesterday about this with a loud mouth Cosmic Rift player.  With Continuum Resizer all you need to do is:

Get mouse coords (x,y) (with Cartesian origin at top left)

Get ship angle

Convert ship angle to radians

Get resolutionx

Get resolutiony

a=resolutionx/2

b=resolutiony/2

If (y-b ) is greater or equal to 0

     If arccos((y-b)/sqrt((x-a)^2+(y-b )^2)) >ship angle, rotate CCW

     If arccos((y-b)/sqrt((x-a)^2+(y-b )^2))

If (y- B)<0

     If (arccos((y-b)/sqrt((x-a)^2+(y- B)^2)+pi) >ship angle, rotate CCW

     If (arccos((y-b)/sqrt((x-a)^2+(y- B)^2)+pi)

Bam, done.

 

Edit:Fucking emoticons. They are all B), and I don't know how to change them.

Edit 2: B) is the letter b followed by a closing parenthesis.

Edited by hallucination
Posted

Werew's got the method down, just used arctan instead of arccos. How would it be received if I released a feature like this in resizer? Might make the game more accessible for new players, but also might break other zones (i don't play EG or TW). Any input??

Posted

I actually screwed it up with beer.  Forgot to take turns that pass an angle of zero into account.  I'll fix it if Marioman wants a double check on the maths.  Yeah, any inverse trig function will do.  Just got to set your bounds right.  As for input on whether this would be helpful, I've always played with a keyboard.  I can't even imagine tracking with a mouse.  But that does seem to be how all those newfangled browser games prefer to do it.

Posted (edited)

Yes, it does, Cheese.  It assigns left or right to be input to the game using the difference in the mouse pointers angle from center and the ships current angle.

Edited by Werew
Posted (edited)

Just wanted to confirm, that's exactly how it works. Not hard to figure that out, werew even posted pseudocode above. So according to that, yes it does obey the rotation speed set in ship settings.

Edited by Marioman
Posted (edited)

Good job, doesn't crash out on my vista 64 anymore and the res change takes effect... BUT

 

Cannot turn off Mouse Aim (when I deselect the option, the game starts and LR arrow keys do not function. As soon as you move the mouse, the dot appears and the ship rotates. Rotation function is not correct... It seems to move 2 or 3 ticks, then stops.

 

Fonts are screwed no matter what advanced options, font size, or resolution that I set. (Page flipping, clipping, software emulation, force fonts to mem).

Edited by Bargeld
Posted (edited)

Heu MarioMan any chance to do a quick version of this that works on subspace 1.34/1.35

 

Might help me with my zombee onslaught :)

 

...Axe

 

If not no worry i'm looking forward to playing around with version 2.2

 

just to add something its the resizer i'm really looking for the 1.34/1.35 as the old program is full screen and i haven't played around with dxwnd to see if i can window it.

Edited by Axe Demento
Posted

windows Vista crashing out with a

"the exception unknown software exception (0xc000005)

0x5f6b3433

 

Whats the best operating system to run this on?

i have everything from windows 95 - Windows 8.1 running

oh and i guess also ubuntu :)

 

...Axe

Posted

Bargeld thanks for testing, I had accidentally uploaded a version I was using to test that had mouse aim hard-coded to be always on. New build is up where the mouse aim option in settings actually does something -- go download that. As for fonts, everyone always mentions something about fonts looking weird when they use resizer. That's an effect of the resizing. If you don't resize at all, the fonts won't change at all... so if that's a problem for you make sure you are running at whatever original res you liked your fonts on.

Axe, how many people play on a client that isn't continuum 0.40? I think that should answer your question about making a 'quick' version for subspace 1.34/1.35. This works on vista (as confirmed by Bargeld), win7 and win8. You might want to check if you have some malware on your pc or if something corrupted.

Posted

The key about what clients people use is whats available I've now gotten to play SS with discretion, PSpace, Subspace 1.35 1.34  (no Subspace II yet.)

 

I haven't looked at your program yet so i don't know what you did to make it work or how it works.  My quick guess if you have something catching info between the client and server and then doing keyboard commands.  I'm interested in know more as always i'm looking for things that are useful to me.  I want to move my SS past the limitations of playing it from continuum as it never moves forward only inward.

 

As far as vista goes it has its moments. I prob have liked windows 7 more then 8.  Earlier today i learned about most of windows 8 is designed to stop you running exe files.

 

I put about 15 seconds of effort into getting it going.  Now that i have conformation that it works on vista i can put in 5 minutes :)  as far as operation systems go the benefit of having so many computers up and running is i can walk to and use what ever operating system it works best on.  Windowing old copies of subspace is one of the things i want to do.  So if your program had worked for it i would use it.  If not i'll figure out the settings for dxwnd.

 

Either way i appreciate anyone who makes something for SS.

 

...Axe

Posted (edited)

Mouse aim (or lack thereof) is functioning correctly.

 

As far as the fonts... I'll attach some examples, it's not just a function of the res being different because I use the resizer on my win7 laptop and it's not doing this.

 

Also, whenever i take a screenshot, it seems to blow the screen buffer out to the resizer res setting and sets it as the capture size, but then places the visible screen at 1650 x 1080 as seen, and the first screenshot is always a solid black screen. Onscreen, the actual visible display on the monitor, the monitor sees a full screen image, none of the cropping problems occur, except in the screenshot output.

 

"Show Default Resolutions" seems to have very odd behavior also, although it would take quite a long to time to fully describe it all. Let me know if you really want me to.

 

Vista default res: 1650 x 1080 (16:10 aspect)

 

Attempting:

 

2048 x 1340

http://www.bargeld.us/storage/2048x1340.jpg

 

2560 x 1676

http://www.bargeld.us/storage/2560x1676.jpg

 

3300 x 2160

http://www.bargeld.us/storage/3300x2160.jpg

 

 

These are the original .bmp just converted to .jpg. Fonts are screwed in all, as can be seen.

Edited by Bargeld
Posted (edited)

I've popped in a few times since your post, but haven't managed to cross paths with you yet. You're using 'Weasal' right?

 

Crescendo left me a ?message for a good idea, to try using the resizer at my default res, and see what that does. Lo and behold, there is an oddity.

 

First off, simply setting the custom res in the resizer forced my lower windows taskbar to always be on top, even when in game. It basically looked like an active desktop, with no way to get the taskbar to go away. That was using all the same settings for everything in the previous posts/tests. I then turned 'chat window support' OFF in the resizer, and it fixed the problem, taskbar went away. That's when I noticed that the game's "full screen" was dropping a number of lines off the bottom of the screen. As you can see in the screenshot, there are 30 pixels of black space at the bottom (i measured it in photoshop), and the text/chat is cut in the middle of a line... where that line cuts off was the bottom of the monitor at full screen.

 

1650x1080

 

http://www.bargeld.us/storage/1650x1080.jpg

 

Based on that, and the font wonkiness I've seen, it almost looks like there is a fixed value in the formula for the res to display that is off by that 30. Or possibly a weird percentage/division occurring.

 

I'll continue to look for you in game.

 

Edit: on a hunch, I checked the height of the Vista taskbar by taking a desktop screenshot and then pasting into photoshop and measuring: 46 pixels.

 

Edit 2: Feel free to split my troubleshooting stuff off to a separate topic for general Resizer troubleshooting, in order to clean up the mouse aim topic. Sorry about that.

Edited by Bargeld
Posted

Thanks cheese but it turns out the problem was just him misreading his native monitor resolution (1650x1080 vs 1680x1050). I did try to improve resizer though, recommend everyone try the latest version 2.3 (if your hardware supports scaling you may see some improvement).

Posted

The fonts remained screwy no matter what we tried, even with my custom res correctly set at 2x native (3360 x 2100) on the newest version. But I'm only one user, and we spent a good amount of time in-game trying to work the fonts out yesterday, so if everyone else is working fine, no harm, no foul.

Posted

so Tried another couple times with bargelds settings for the res. still not working.  Just to let you know i don't think it likes vista.  Its also a 64bit.  Same error as above. 

 

I'll try it on windows 8.1 next.

 

...Axe

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...