Mod Archive Forums Mod Archive Forums
Advanced search  

News:

Please note: Your main modarchive.org account will not work here, you must create a forum account to post on the forums.

Pages: [1] 2   Go Down

Author Topic: Resolution Issue  (Read 17134 times)

0 Members and 1 Guest are viewing this topic.

grip

  • New User
  • Offline Offline
  • Posts: 4
    • View Profile
Resolution Issue
« on: August 06, 2010, 00:35:43 »

I was playing around with the resolution settings, in fullscreen mode in milky tracker. I accidentally set it to some mode that it can't display. Now when I try to run Milky Tracker, it tries to use that mode, and crashes. I'm running it under Arch Linux, and I can't find a configuration file anywhere. Is there any way to change the settings without starting the program? Or starting with defaults?
Logged

haschischtasche

  • New User
  • Offline Offline
  • Posts: 24
    • View Profile
    • My YouTube channel
Re: Resolution Issue
« Reply #1 on: August 06, 2010, 10:17:22 »

open milkytracker.cfg (its benath milkytracker.exe) with a hex-editor of your choice. go to line 230 and change the second byte from 31 to 30. save it, start milkytracker and configure it.
this does not do anything with the resolution (the resultion is in the lines after it), it just disables fullscreen mode.

proably you can also just delete the file and milkytracker will create a new one with default settings for you, but i am not 100% sure on that. so you should use the safe way i described above. ;)
Logged
Insert signature here...

Saga Musix

  • TMA Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 2571
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
Re: Resolution Issue
« Reply #2 on: August 06, 2010, 13:09:48 »

go to line 230
You should be a bit more accurate for a correct answer. Various hex editors have various line lengths, mostly 8 or 16 bytes.
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker

haschischtasche

  • New User
  • Offline Offline
  • Posts: 24
    • View Profile
    • My YouTube channel
Re: Resolution Issue
« Reply #3 on: August 06, 2010, 13:55:58 »

the last hexedit with 8bytes line lengths i saw was at the beginning of my a500 times. ;)

so to be more specific (just for saga ;)): to an ascii search for 'FULLSCREEN' and change the fifth byte after that from (hex) 31 to 30
Logged
Insert signature here...

TraumFlug

  • New User
  • Offline Offline
  • Posts: 24
    • View Profile
Re: Resolution Issue
« Reply #4 on: August 06, 2010, 20:14:07 »

open milkytracker.cfg (its benath milkytracker.exe) with a hex-editor of your choice. go to line 230...

lol, he's running linux, there's no .exe or .cfg...

I think under linux the settings are all stored in "/home/username/.milkytracker_config", try deleting it to make the tracker revert to default values (better backup before...see below).

heh, there's a "-fullscreen" command line parameter, but no "-windowed", 4 lines of dead-simple code in "SDL_Main.cpp" and you could keep your settings, starting milky with windowed mode enforced  :P
Logged

haschischtasche

  • New User
  • Offline Offline
  • Posts: 24
    • View Profile
    • My YouTube channel
Re: Resolution Issue
« Reply #5 on: August 07, 2010, 00:39:13 »

oh, i kind of overlooked that he is using linux.

the config file in linux (the one you told him the path for) will have the same format for sure though.
Logged
Insert signature here...

raina

  • Milkytracker Moderator
  • Great Poster
  • ***
  • Offline Offline
  • Posts: 719
    • View Profile
    • raina.kapsi.fi
Re: Resolution Issue
« Reply #6 on: August 07, 2010, 01:35:16 »

heh, there's a "-fullscreen" command line parameter, but no "-windowed", 4 lines of dead-simple code in "SDL_Main.cpp" and you could keep your settings, starting milky with windowed mode enforced  :P

You're welcome to submit patches and take part in development. It's been a little slow lately on that front, no matter how open the source is. ;)

TraumFlug

  • New User
  • Offline Offline
  • Posts: 24
    • View Profile
Re: Resolution Issue
« Reply #7 on: August 07, 2010, 05:05:44 »

yeah, sure, when I've got time & enough space in my head to learn a few bits I'd love to contribute!

but another thing: I've managed to toggle fullscreen from shell, with a command. grip might find it useful to keep his settings, colours & envelopes he'd loose by deleting the config-file. thanks to inspiration from the posts above!!!

the command is, from your home directory, while milky is not running (it can't as it segfaults... :P):

Code: [Select]
echo 0 | dd of=.milkytracker_config bs=1 seek=542 count=1 conv=notrunc

and milkytracker will start in windowed mode next time you launch it!

[edit] I was probably a bit too optimistic as of the config file having a fixed byte-order

please do:

Code: [Select]
dd if=.milkytracker_config bs=1 skip=528 count=10

before trying the first command. if it gives you a "FULLSCREEN" in the output (with a lot of other stats data after it, but the "fullscreen10+0" should be first), then you can switch off fullscreen mode with the first command, at least I hope so...it worked for my system & config. otherwise I can tell you how to find the right "skip" "seek" value yourself.
« Last Edit: August 07, 2010, 05:44:35 by TraumFlug »
Logged

Deltafire

  • Milkytracker Moderator
  • Rising Star
  • *
  • Offline Offline
  • Posts: 196
    • View Profile
Re: Resolution Issue
« Reply #8 on: August 07, 2010, 21:40:17 »

The -fullscreen command line option is a relic from the time when there wasn't a fullscreen setting in the config menu.  You should also be able to toggle full-screen mode using the alt-return combination.

I wonder if the seg-fault is occurring from within Milkytracker or the SDL library?
Logged

grip

  • New User
  • Offline Offline
  • Posts: 4
    • View Profile
Re: Resolution Issue
« Reply #9 on: August 09, 2010, 22:10:24 »

lol, he's running linux, there's no .exe or .cfg...

Haha, yeah.

Ah yes, there it is in the home folder! I was looking everywhere for some sort of config file - guess I should have looked there first. Damn hidden files.

Anyways, deletion of the config file worked (I had barely even started using milky, so I didn't lose much).

Thanks for the help, I appreciate it!
Logged
Pages: [1] 2   Go Up