Don't forget to read the rules of the forum. No current release restrictions. | Help Search Members Calendar

Logged in as: The Dreamslayer ( Log Out ) | My Controls · 0 New Messages · View New Posts · My Assistant

Mugen DEV Forum -> Development and Help Forums -> Development Help

stcommon = common1.cns, which directory gets checked?...
Track this topic | Email this topic | Print this topic

Loona | Posted: Dec 8 2003, 02:42 AM
Sorcerologist Group: Members Posts: 387 Member No.: 1176 Joined: 26-October 02
When a character's DEF file has the line "stcommon = common1.cns", and there's no file with that name in his respective directory, then Mugen assumes it's the file in Mugen's "data" folder, right?...
And when a character's DEF file has a file with some other name mentioned in the "stcommon" field, then it checks the character's directory for it, right?...
If that's the case, then if there's a file called "common1.cns" both in the character's folder and the "data" folder, which of them gets read?...
I hope I was clear enough in stating my doubt - I'm trying to make sure of how Mugen handles a character's "common" states file for a little project I'm working on with a friend...
--------------------
Sorcerology 101 - Lesson 2 - Experimentation: Trial and Error

Rolento | Posted: Dec 8 2003, 02:55 AM
Full Member Group: Admin Posts: 284 Member No.: 3 Joined: 1-September 02
The one in the character's folder is the one used, as it has priority.

Winane | Posted: Dec 8 2003, 03:14 AM
MUGEN Grip Group: Members Posts: 314 Member No.: 122 Joined: 14-September 02
What I found the other day, is that it first checks the common1.cns (if it exists) in the character's folder, but if it discovers that the file is not valid, it then silently reverts to the one in your data directory. I found that when I tried putting the 2002.04.14 version of common1.cns in KFM's folder while using Mugen 2001.04.14, and it ignored the file due to the unrecognized new triggers.

Messatsu | Posted: Dec 8 2003, 03:34 AM
banneded Group: Members Posts: 312 Member No.: 4158 Joined: 10-October 03
I remember changing some of the jump properties for a character inside the common1.cns in the character's folder and the changes didn't show. I had to change part of state 45 for a wall jump to work. I placed the code inside another cns that the character used and the move worked. Might just be my poor memory. Go figure.
--------------------
You might think that Elecbyte is dead, but this investigation has not been solved for years.

SMI | Posted: Dec 8 2003, 10:55 AM
Member Group: Members Posts: 62 Member No.: 111 Joined: 14-September 02
I had the same problem that Messatu had when I was codding Mr. Karate Ai jump code.
Then I renamed thir common1.cns file that was at their directory to Common.cns and it worked like heaven.
So, up to now, it is known that naming the file that will hold common code as common1.cns and putting it at the character directory might not work well in some situations.
Further studing and testing will be required before making an statement.
--------------------
[murray voice]
I'm a powerful demonic force!
I'm the harbinger of your doom!
And the forces of darkness will applaud me as I stride through the gates of hell carrying your head on a pike!
[/murray voice]

« Next Oldest | Development Help | Next Newest »

Close Topic Options
Track this topic
Receive email notification when a reply has been made to this topic and you are not active on the board.
Subscribe to this forum
Receive email notification when a new topic is posted in this forum and you are not active on the board.
Download / Print this Topic
Download this topic in different formats or view a printer friendly version.
- M.U.G.E.N Development Forum - Contact an admin - ELECBYTE - Shin Mugen -
Powered by Invision Power Board(U) v1.2 © 2003 IPS, Inc.