English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 18 July 2020, 22:39   #161
8bitbubsy
Registered User
 
8bitbubsy's Avatar
 
Join Date: Sep 2009
Location: Norway
Posts: 1,710
Could a mod please change the topic title to:
[PROJECT] ProTracker 2 clone for modern platforms

Thanks
8bitbubsy is offline  
Old 24 October 2020, 22:29   #162
Angus
Amiga Games Database
 
Angus's Avatar
 
Join Date: Jun 2006
Location: South West England
Posts: 1,240
I've just tried messing about with this, and it is brilliant. Sorry if this is a stupid question, but looking at the .ini file it should default to the program directory for disk ops, but instead it goes to C:/user/angus - I changed the directory in the .ini file but it still went to the same place and...........


.....hang on, is this an Admin user thing?

I'll have a look at that. :-) Hmmmm...... I selected properties and set the program to Admin but it still insists on using the same directory. I should probably add this is Win 10.

Last edited by Angus; 24 October 2020 at 22:35.
Angus is offline  
Old 25 October 2020, 09:43   #163
8bitbubsy
Registered User
 
8bitbubsy's Avatar
 
Join Date: Sep 2009
Location: Norway
Posts: 1,710
It doesn't require admin rights. I did a test myself:
DEFAULTDIR=C:\Users\Olav\Documents\hi test\modules
SMPDIR=C:\Users\Olav\Documents\hi test\samples

And it works like it should for me. When I open the PT2 clone it's initially inside that directory I wrote.
I have no idea if this is possibly an UAC kind of problem. I have always disabled UAC on my Windows 10 setups.

Are you on the latest version? And you should also not use quotes for the path in the config.
8bitbubsy is offline  
Old 25 October 2020, 14:32   #164
Angus
Amiga Games Database
 
Angus's Avatar
 
Join Date: Jun 2006
Location: South West England
Posts: 1,240
Yes, I just downloaded it a week or two ago. Can you make the default directory on another drive/partition apart from C? I have put your program on my M: partition with my other music stuff. But it always looks in C:/user for some reason.

I hope I'm not doing something stupid, but it is entirely possible. :-)
Angus is offline  
Old 25 October 2020, 17:14   #165
8bitbubsy
Registered User
 
8bitbubsy's Avatar
 
Join Date: Sep 2009
Location: Norway
Posts: 1,710
It will initially stay in the current user's directory per default, if the path(s) in the config were not present, or couldn't be accessed.

I tested with another drive in protracker.ini:
DEFAULTDIR=D:\test 2\test 3

It worked fine here.
Also yes, you're right, there's some invalid text in the config... "Comment: If it is blank, then it will use the current dir.".
This is not correct anymore. It will initially try the user's directory if no custom paths were set in the config.

What you need to do is to change DEFAULTDIR in protracker.ini. You can't just copy the EXE to a directory and have it use that dir initially.
8bitbubsy is offline  
Old 25 October 2020, 18:18   #166
Angus
Amiga Games Database
 
Angus's Avatar
 
Join Date: Jun 2006
Location: South West England
Posts: 1,240
Got it! :-)

Many thanks, it's working now.

Just a thought, does it accept the label rather than the device letter, like

DEFAULTDIR=DATA 2:\MUSIC\

I couldn't make that work.

I understood drive letters were dynamically assigned.
Angus is offline  
Old 25 October 2020, 19:55   #167
8bitbubsy
Registered User
 
8bitbubsy's Avatar
 
Join Date: Sep 2009
Location: Norway
Posts: 1,710
I don't think that works, no. This is not a normal way of accessing drives in Windows, and drives can have the same volume labels, etc.
8bitbubsy is offline  
Old 25 October 2020, 20:36   #168
Angus
Amiga Games Database
 
Angus's Avatar
 
Join Date: Jun 2006
Location: South West England
Posts: 1,240
Okay, thanks for your time - and very many thanks for your work on this program. :-)
Angus is offline  
Old 25 October 2020, 20:47   #169
8bitbubsy
Registered User
 
8bitbubsy's Avatar
 
Join Date: Sep 2009
Location: Norway
Posts: 1,710
I'm glad you like it. :>
8bitbubsy is offline  
Old 12 August 2021, 11:50   #170
no9
Registered User
 
no9's Avatar
 
Join Date: Feb 2018
Location: Poland
Posts: 352
@8bitbubsy on Windows7 after waking up computer from sleep mode keyrepeat goes crazy fast. It gets back to normal after a while, but requires to wait until that.
no9 is offline  
Old 12 August 2021, 11:52   #171
8bitbubsy
Registered User
 
8bitbubsy's Avatar
 
Join Date: Sep 2009
Location: Norway
Posts: 1,710
Not sure how to fix that, but I'm pretty sure it's related to either vsync or the fake "wait for vsync" function which uses performance counters.
8bitbubsy is offline  
Old 12 August 2021, 19:36   #172
8bitbubsy
Registered User
 
8bitbubsy's Avatar
 
Join Date: Sep 2009
Location: Norway
Posts: 1,710
PT2 clone v1.32 released: https://16-bits.org/pt2.php | Changelog: https://github.com/8bitbubsy/pt2-clo...ases/tag/v1.32

no9: This didn't fix your issue, but I released a new version today anyway.
8bitbubsy is offline  
Old 17 September 2021, 11:32   #173
8bitbubsy
Registered User
 
8bitbubsy's Avatar
 
Join Date: Sep 2009
Location: Norway
Posts: 1,710
PT2 clone v1.34 released: https://16-bits.org/pt2.php | Changelog (check v1.33 and v1.34): https://16-bits.org/pt2-clone-changelog.txt

Some nice changes in v1.33 and v1.34, in my opinion.
8bitbubsy is offline  
Old 26 September 2021, 17:12   #174
frakswe
Registered User
 
frakswe's Avatar
 
Join Date: Jul 2018
Location: Laughingstock
Age: 45
Posts: 23
Thanks, "compiled out of the box" for OpenBSD with a mere "-DCMAKE_C_FLAGS="-I/usr/local/include". Hats off for your effort in making it multiplatform.
frakswe is offline  
Old 06 October 2021, 11:47   #175
no9
Registered User
 
no9's Avatar
 
Join Date: Feb 2018
Location: Poland
Posts: 352
Thanks for updating it 8bitbubsy!

I have issue with two monitor setup: it always starts on main screen and when I move it manually to secondary monitor it gets back to the origin after using F11 twice (when it is used to quit fullscreen mode, because it opens fullscreen on correct screen).
no9 is offline  
Old 06 October 2021, 14:21   #176
8bitbubsy
Registered User
 
8bitbubsy's Avatar
 
Join Date: Sep 2009
Location: Norway
Posts: 1,710
Quote:
Originally Posted by no9 View Post
Thanks for updating it 8bitbubsy!

I have issue with two monitor setup: it always starts on main screen and when I move it manually to secondary monitor it gets back to the origin after using F11 twice (when it is used to quit fullscreen mode, because it opens fullscreen on correct screen).
Yes, multi-monitor setup is buggy with my tracker clones. I don't know how to fix it, it's not simple.
8bitbubsy is offline  
Old 06 October 2021, 18:34   #177
paraj
Registered User
 
paraj's Avatar
 
Join Date: Feb 2017
Location: Denmark
Posts: 1,098
Quote:
Originally Posted by 8bitbubsy View Post
Yes, multi-monitor setup is buggy with my tracker clones. I don't know how to fix it, it's not simple.

As it's your software/time at stake and I might be missing crucial details, so fell free to disregard the below.

I think it's because toggleFullScreen in pt2_visuals.c does this in line 2307

Code:
SDL_SetWindowPosition(video.window, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED);
SDL_WINDOWPOS_CENTERED will center the window on the first monitor (https://stackoverflow.com/a/41746429/786653)

I think if you use SDL_GetWindowPosition to save the old position before switching to fullscreen and then use the values returned there instead when calling SDL_SetWindowPosition the window should return to its old position (even on another monitor).

Again there might be good reasons you wouldn't want to do this (and it gets more complicated if you always want to center the window when returning from fullscreen), so take it FWIW.
paraj is offline  
Old 06 October 2021, 18:41   #178
squidbass
Registered User
 
squidbass's Avatar
 
Join Date: Sep 2007
Location: Southport The Last Resort
Posts: 202
I'm a huge FreeBSD fan, they've had a Protracker clone (& a FastTracker clone) for a few years now. Both are accurate.
squidbass is offline  
Old 06 October 2021, 20:32   #179
8bitbubsy
Registered User
 
8bitbubsy's Avatar
 
Join Date: Sep 2009
Location: Norway
Posts: 1,710
Quote:
Originally Posted by paraj View Post
As it's your software/time at stake and I might be missing crucial details, so fell free to disregard the below.

I think it's because toggleFullScreen in pt2_visuals.c does this in line 2307

Code:
SDL_SetWindowPosition(video.window, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED);
SDL_WINDOWPOS_CENTERED will center the window on the first monitor (https://stackoverflow.com/a/41746429/786653)

I think if you use SDL_GetWindowPosition to save the old position before switching to fullscreen and then use the values returned there instead when calling SDL_SetWindowPosition the window should return to its old position (even on another monitor).

Again there might be good reasons you wouldn't want to do this (and it gets more complicated if you always want to center the window when returning from fullscreen), so take it FWIW.
Seems like you are right, so it's simple indeed. I just assumed it wasn't because multi-monitor + SDL = the horror, I've had so much bad experiences with it. I might remove the centering of the window itself, it's not hugely important.
8bitbubsy is offline  
Old 10 October 2021, 19:40   #180
no9
Registered User
 
no9's Avatar
 
Join Date: Feb 2018
Location: Poland
Posts: 352
May I also ask to change the warning that pops up while 22khz+ sample is loaded? I think this is useful but for for samples that actually exceeds Protrackers frequency boundaries, that is above B3 note.
no9 is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
SDL problem. tolkien Coders. C/C++ 10 24 March 2015 03:29
XAMOS - new cross-platform rewrite of jAMOS Mequa News 24 14 December 2012 09:49
use SDL 1.2.13 with AmyDevCpp TheDarkCoder Coders. General 3 18 August 2009 20:55
WinUAE w/SDL mangamuscle request.UAE Wishlist 8 31 January 2007 11:41
What do you know about Amiga SDL? Tolismlf Amiga scene 6 15 November 2004 18:54

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:22.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.10175 seconds with 15 queries