ModPlug Central

OpenMPT Development (Archive) => Bug Reports => Bug Report Archive => Topic started by: Saga Musix on September 20, 2007, 19:09:57

Title: .48 Copy & Paste bug in MOD files
Post by: Saga Musix 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!
Title: .48 Copy & Paste bug in MOD files
Post by: Sam_Zen on September 20, 2007, 23:32:46
Confirmed. Even when marking "F01".
Title: .48 Copy & Paste bug in MOD files
Post by: LPChip 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.
Title: .48 Copy & Paste bug in MOD files
Post by: Sam_Zen 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.
Title: .48 Copy & Paste bug in MOD files
Post by: LPChip 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.
Title: .48 Copy & Paste bug in MOD files
Post by: Sam_Zen 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
Title: .48 Copy & Paste bug in MOD files
Post by: Nahkranoth 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
Title: .48 Copy & Paste bug in MOD files
Post by: Relabsoluness 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.
Title: .48 Copy & Paste bug in MOD files
Post by: Nahkranoth 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 :?
Title: .48 Copy & Paste bug in MOD files
Post by: Relabsoluness 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.
Title: .48 Copy & Paste bug in MOD files
Post by: Nahkranoth on October 29, 2007, 08:17:49
Thanks, Relabsoluness! Now it works fine :oops:
Title: .48 Copy & Paste bug in MOD files
Post by: Saga Musix on March 29, 2008, 20:48:28
Fixed! :)