Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
GhostV
Newbie


Joined: 05 Aug 2007
Posts: 5

PostPosted: Sun Aug 05, 2007 7:23 pm   

cmud crash
 
Hiyas,

i am pondering to swap over from Zmud to Cmud, but after importing a set of scripts and a map, i am now in a situation where i keep crashing cmud whenever i try to change a trigger into a loop pattern or loop expression.
Also, rooms at random do not delete, and changes to the map cause the game to crash. Yet when i run the compatibility check, nothing comes up.

Also, array variables seem to loose their values whenever i close the program, and there are several strange reassignments of variables which are not possible in script code.

What can be done to fix this ?

A.
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Sun Aug 05, 2007 9:38 pm   
 
Hmmm...

Sounds like you've got a myriad of things going on. Let's start with the easy one. The mapper. Unfortunately there's not much that can be done there. The mapper in CMUD is the same from zMUD retrofitted and it's not a perfect fit. You can trying undocking your map if it helps, and vice-versa. I may be superstitious, but compacting the map always seems to make it a bit more stable. At least in my opinion. For room deletes make sure you are in map edit mode and that you character is not indicated to be in the room you are trying to delete. There will be a major rewrite of the mapper later this year.

The rest of the stuff sounds like a corrupted package. What this means is that you may be better off doing a manual conversion. Somethings that can help before you try modifying the trigger, check the compiled tab to make sure that it compiles properly. As for the variables make sure they are not set to default. For the strange reassignments I'd double check the syntax of the scripts you are using. CMUD is stricter about syntax, so things that may have worked in zMUD may not function quite the way you expected in CMUD. Look at this section (Changes for zMUD users) for more assistance.
_________________
Asati di tempari!
Reply with quote
GhostV
Newbie


Joined: 05 Aug 2007
Posts: 5

PostPosted: Mon Aug 06, 2007 6:56 pm   
 
Thanks for the quick response. I will try the suggestion with the mapper.

As far as the script conversion goes, i did go through all the scripts with a fine comb, and all syntax seems to match out just fine. I will cross check to recreate some of the scripts manually and see if i get the same kinds of errors there.

Now, which i havent found really is, is there any way to export stuff separately from zmud, and then import it separately into cmud
(some scripts i rather not try to reprogram by hand, it took me a long time to get them, and i would love to have the map transferred over somehow too)
Reply with quote
GhostV
Newbie


Joined: 05 Aug 2007
Posts: 5

PostPosted: Mon Aug 06, 2007 7:12 pm   
 
Actually, now i have an even bigger problem - trying to restart zmud after having run cmud, it refuses to start entirely. It closes when the window comes up to initialize the components.

Any help there ?
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Aug 06, 2007 8:18 pm   
 
CMUD and zMUD shouldn't have any interaction. They don't share any files. Check the Task Manager in Windows to make sure zMUD isn't already running in the background somewhere. You can also try deleting or renaming the ZMUD.INI file to restore the default window layout in case it is opening the application off the edge of your screen for some reason. Rebooting Windows can also help sometimes. You didn't mention what version of Windows you are using though.

The proper way to import stuff from zMUD into CMUD is to run the Import wizard in CMUD. When you run CMUD and see the Sessions window, select the Import command from the File menu (in the Session window menu, not the main CMUD menu). It will ask you where zMUD is installed, and it will then show a list of all zMUD character sessions. Select the ones you want to import.

CMUD will copy all of the files from zMUD into your CMUD directory, so just make sure that you installed CMUD to a separate directory (it's good to just accept the default file locations when you install CMUD). I believe it will also copy your map files from your zMUD directory into the CMUD directory. So you should end up with a copy of everything within CMUD that is separate from your zMUD files.
Reply with quote
GhostV
Newbie


Joined: 05 Aug 2007
Posts: 5

PostPosted: Wed Aug 08, 2007 7:47 pm   
 
Ok.. i did get Zmud to run again. Apparently, i needed to run it as administrator first.

Now, with importing things into cmud - that is exactly what i did do. It did import all the scripts and the map, listed no compatibility issues and left me with a situation where i cannot change a trigger type to become a loop trigger without crashing cmud. That is the original problem, really.

Zmud and Cmud do not share any files or folders, so there should be no issue there.

Again, i would appreciate any hint you can give.

Oh, i forgot - i am running both on Win XP
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Wed Aug 08, 2007 9:27 pm   
 
Can you post the zMUD code for the trigger? I want to see if I can recreate the problem.
_________________
Asati di tempari!
Reply with quote
GhostV
Newbie


Joined: 05 Aug 2007
Posts: 5

PostPosted: Fri Aug 10, 2007 8:58 pm   
 
Yup.. here is the code for it. It is actually two triggers which are needed to work.. first trigger (please note : i set the line separator char to : as i need the ; for other things.

First trigger :
Code:
#TRIGGER {%s(*):%s(%n)%s(*):%s(%n)%s(*):%s(%n)} {
#variable Component %replace( {%1}, " ", _):
#variable @Component %2:
#variable Component %replace( {%3}, " ", _):
#variable @Component %4:
#variable Component %replace( {%5}, " ", _):
#variable @Component %6} "Conjuring"

Second trigger :
Code:
#TRIGGER {You complete the spell of conjuration and add some %1 to your} {#va component {%1}} "Conjuring"
#COND {pouch. You now have %1.} {
#va cval %1:
#if (@cval<@storable-4) {
  #alarm +10 {conjure 5 @component}} {
    #if (@cval<@storable) {
      #alarm +10 {conjure %eval( @storable-@cval) @component}
    } {
      #va %replace( @component, " ", _) @storable:
      #math loop (@NumComponents - @CurComponent):
      #while (@loop > 0) {
        #if (@{%replace( %arrget( components, @CurComponent), " ", _)} < @storable) {
          #va loop -2:
          #echo recognized %arrget( components, @curcomponent) (@curcomponent):
          #alarm +10 {conjure %min( @storable-@{%replace( %arrget( components, @CurComponent), " ", _)}, 5) %lower( %arrget( Components, @CurComponent))}
        } {
          #add CurComponent 1:
          #Math loop (@NumComponents - @CurComponent)
        }
      }
    }
  }:
  #if (loop < -1) {#echo Conjuring done}
}


preset variables :
Code:
#VAR Components {<Array>|adder tongue|flint|iron rod|oil|salt|black pearl|crystal|glitter|lead shavings|phosphorus|spider silk|blood|eye of newt|ice|needle|poppy|sulfur}
#var NumComponents 17
#var Storable 20


interestingly enough, this trigger works rather nicely after it was imported into cmud, but on subsequent sessions, the array is always empty, so that i cannot get the correct component selected. Once the array is set again, everything is fine.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net