Author Topic: .48 Copy & Paste bug in MOD files  (Read 6849 times)

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 6,704
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 10 x64
.48 Copy & Paste bug in MOD files
« on: September 20, 2007, 19:09:57 »
Full Version:
OpenMPT v1.17.02.48

Has the bug occured in previous versions? If yes, please specify version(s): (This option is optional, and doesn't need research. But in case you know...)
not tested


Description of the bug:
Some copy&paste stuff does not seem to work properly with MOD files.
If you copy an effect, it will change.

How to reproduce (step by step description):
Comparison XM and MOD:
write the Effect F01 in the effect colum. mark the "F" and press ctrl+c! now, move down and press ctrl+v. in XM format, everything happens like expected. in MOD format, the pasted effect will be 101!
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.

Offline Sam_Zen

  • Extreme artist
  • *****
  • Posts: 3,689
    • http://www.xs4all.nl/~samzen/
.48 Copy & Paste bug in MOD files
« Reply #1 on: September 20, 2007, 23:32:46 »
Confirmed. Even when marking "F01".
0.618033988

Offline LPChip

  • Administrator
  • *****
  • Posts: 5,063
    • http://lpchip.nl
  • Operating System: Windows 10 Pro x64
.48 Copy & Paste bug in MOD files
« Reply #2 on: September 21, 2007, 08:14:49 »
Sounds like it is being interpretated as an IT function during copy, and pasted ad an XM/mod function.
"Heh, maybe I should've joined the compo only because it would've meant I wouldn't have had to worry about a damn EQ or compressor for a change. " - Atlantis
"yes.. I think in this case it was wishful thinking: MPT is makng my life hard so it must be wrong" - Rewbs

Offline Sam_Zen

  • Extreme artist
  • *****
  • Posts: 3,689
    • http://www.xs4all.nl/~samzen/
.48 Copy & Paste bug in MOD files
« Reply #3 on: September 22, 2007, 01:09:06 »
Tested some other codes in a MOD file, and they all changed after pasting :
C -> D, E -> 2, A -> F.
0.618033988

Offline LPChip

  • Administrator
  • *****
  • Posts: 5,063
    • http://lpchip.nl
  • Operating System: Windows 10 Pro x64
.48 Copy & Paste bug in MOD files
« Reply #4 on: September 22, 2007, 08:41:56 »
Quote from: "Sam_Zen"
Tested some other codes in a MOD file, and they all changed after pasting :
C -> D, E -> 2, A -> F.


It confirms my suspicion, because these commands (left side) is the command in IT, where the right side is the same command in XM.
"Heh, maybe I should've joined the compo only because it would've meant I wouldn't have had to worry about a damn EQ or compressor for a change. " - Atlantis
"yes.. I think in this case it was wishful thinking: MPT is makng my life hard so it must be wrong" - Rewbs

Offline Sam_Zen

  • Extreme artist
  • *****
  • Posts: 3,689
    • http://www.xs4all.nl/~samzen/
.48 Copy & Paste bug in MOD files
« Reply #5 on: September 22, 2007, 23:38:32 »
You're right.
After checking the effects code-lists, I found a workaround for this.
The XM-list has a complete copy of the MOD codes, plus some extra from H to Z.
So it's perfectly safe to convert a MOD to a XM, the codes will stay the same. (Not the other way around of course).
Because this copy/paste works correctly in XM mode, then the editing of a MOD could be :
~ Open the MOD
~ General Tab : Song Properties -> XM
~ Do the editing
~ General Tab : Song Properties -> MOD
0.618033988

Offline Nahkranoth

  • Crazy artist
  • ****
  • Posts: 551
  • Gender: Male
.48 Copy & Paste bug in MOD files
« Reply #6 on: October 24, 2007, 08:44:24 »
Another fine example of this bug:
When you try to copy LPChip's pattern from here http://forum.openmpt.org/index.php?topic=1987.0 into OMPT you get the same notes but effects are messed like crap. Instead of volume slides I get pattern breaks and note cuts are missing. The module type is set to IT by default

Offline Relabsoluness

  • OpenMPT Developers
  • *****
  • Posts: 709
.48 Copy & Paste bug in MOD files
« Reply #7 on: October 24, 2007, 21:00:26 »
Quote from: "Nahkranoth"
Another fine example of this bug:
When you try to copy LPChip's pattern from here http://forum.openmpt.org/index.php?topic=1987.0 into OMPT you get the same notes but effects are messed like crap. Instead of volume slides I get pattern breaks and note cuts are missing. The module type is set to IT by default

Pasting works fine for me when pasting the whole text including the first line "ModPlug Tracker IT", not just the pattern part.

Offline Nahkranoth

  • Crazy artist
  • ****
  • Posts: 551
  • Gender: Male
.48 Copy & Paste bug in MOD files
« Reply #8 on: October 26, 2007, 07:05:19 »
2Relabsoluness I paste the first line too so the problem still exists. I'm using 1.17.02.48, it's the most recent ver as far as I know. Maybe someone can verify this, because I got a riddle here :?

Offline Relabsoluness

  • OpenMPT Developers
  • *****
  • Posts: 709
.48 Copy & Paste bug in MOD files
« Reply #9 on: October 26, 2007, 21:21:06 »
Quote from: "Nahkranoth"
2Relabsoluness I paste the first line too so the problem still exists. I'm using 1.17.02.48, it's the most recent ver as far as I know. Maybe someone can verify this, because I got a riddle here :?

I tried it again, and this time it didn't work, but when pasting the text into a text editor and removing an empty character at the end of line 'ModPlug Tracker IT', then it seemed to work.

Offline Nahkranoth

  • Crazy artist
  • ****
  • Posts: 551
  • Gender: Male
.48 Copy & Paste bug in MOD files
« Reply #10 on: October 29, 2007, 08:17:49 »
Thanks, Relabsoluness! Now it works fine :oops:

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 6,704
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 10 x64
.48 Copy & Paste bug in MOD files
« Reply #11 on: March 29, 2008, 20:48:28 »
Fixed! :)
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.