|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sun Nov 05, 2006 6:21 pm
[1.13] Import .mud problem FULL CRASH |
Zugg, I believe you have a copy of my achaea_def.mud. If you lost it and would like me to supply it I will be happy to. The one I sent not that long ago is nearly identical to my current zMud file, if you can't replicate it with that one I will send you a new one that consistently produces the bug.
Steps to recreate:
1. Fresh install into a clean directory
2. Launch CMud
3. Click X on Sessions window to close it.
4. Click Settings button to open Settings Editor
5. Select File|Open from the menu
6. Browse to file and open it.
7. After conversion completes a number of things are notably wrong.
First, buttons in disabled classes are still displayed, this is least issue though.
Second there are a large number of identical classes, specifically the ACPcustom class. Scroll down and you will see them. Selecting one causes an immediate access violation that crashes CMud without any chance to generate a crash report.
This looks to be an import problem and not a problem with the recent changes to the editor since these duplicate classes are also stored into the generated package. However I hadn't tested the import in 1.12, and the file did previously import. |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Sun Nov 05, 2006 8:30 pm |
Confirmed.
After crash, the import will have been maintained but it starts off by displaying the output of several commands. In my case it tries to issue a heal command several (23) times.
[Edit] I think the repeating commands were as a result of the compatibility report. |
|
_________________ Asati di tempari! |
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Mon Nov 06, 2006 11:41 am |
Okay, think I have the reason pinned down. Looks as though it's to do with more than one button/gauge inside a subclass.
After cutting down my mud file considerably I managed to get an example that will break cmud.
Method to reproduce the error is to open zMUD, paste in the text below, then save the .mud and try to open it in CMUD
Working:
Code: |
#BUTTON 1 {buttonOne} {#SAY buttonOne}
#BUTTON 2 {buttonTwo} {#SAY buttonTwo}
|
Broken:
Code: |
#CLASS {subClass} {enable}
#BUTTON 1 {buttonOne} {#SAY buttonOne}
#BUTTON 2 {buttonTwo} {#SAY buttonTwo}
#CLASS 0 |
Edit: Have cut down the example even more, to bare minimum
Notice the only difference is that the Broken code has everything inside a subclass.
When you open either Broken or Working .mud in CMUD you'll see that buttonTwo has been created *outside* of the subclass folder, where it should be inside with everything else.
Also, in just the Broken .mud then aside from the proper subclass folder that you can expand, there's this second one at the bottom that hard crashes CMUD when you click on it.
We're seeing a bug with two buttons, but a bug and a crash with two buttons inside a class. So my guess is that CMUD is getting confused with two button imports and it's somehow breaking the class/folder structure and killing things?
Hope it helps
Guinn |
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Mon Nov 06, 2006 3:19 pm |
I get the same behavior with my .mud file. Oddly enough if I import via pointing the session to the mud file in the sessions edit I don't see this error. All of the buttons work relatively, they still don't refresh unless I use my trick, but the compatibility report says that they do not compile.
|
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Tue Nov 07, 2006 12:49 am |
It looks like Guinn nailed the source of this one. Nice job.
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Nov 07, 2006 8:32 pm |
Thanks for helping to nail this one down Guinn. I've added it to the bug list.
|
|
|
|
|
|