Box2D Forums

It is currently Sun May 19, 2013 6:57 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: cmodule missing error
PostPosted: Sat Jun 16, 2012 8:56 am 
Offline

Joined: Tue Apr 17, 2012 12:08 am
Posts: 118
I am trying to follow the example given here to create a simple world and a create a square inside it, but i keep getting either cmodule missing or other cmodule related error and 100's of warnings , probably related to this error itself, i am just trying to start but the lack of solutions online has forced me to request for help .... i really find all these engines with no or very little support quite annoying, also the authors must be there to support the developers who are making games using their product even if it means charging a small fee.... but with out support they will just die down,


any way back to the topic how i solve this cmodule issue and also please point to some intermediate to advanced tutorial especially for making bike games using wck, thanks a lot ....


Jin


Top
 Profile  
 
PostPosted: Sat Jun 16, 2012 9:44 am 
Offline

Joined: Fri Dec 14, 2007 8:07 pm
Posts: 913
Hey, project-author here. I mostly provide support via this forum. Can you copy-paste the specific errors you are getting?

Also if you haven't seen it, there's quite a bit of documentation on the wiki:

https://github.com/jesses/wck/wiki


Top
 Profile  
 
PostPosted: Sat Jun 16, 2012 10:03 am 
Offline

Joined: Tue Apr 17, 2012 12:08 am
Posts: 118
Hi there , the computer that i am using right now does not have flash installed sadly , i had left office some half an hour back , but i can tell you that when i traced the error it took me to [import cmodule.box2D] i could not find this cmodule folder any where , i guess the error is coming from here, i am only following the very first example that you have posted.....

Thanks for the quick response....

Jin


Top
 Profile  
 
PostPosted: Sat Jun 16, 2012 1:38 pm 
Offline

Joined: Fri Dec 14, 2007 8:07 pm
Posts: 913
The cmodule.box2D stuff is what's compiled in the Alchemy Box2D.swc, so that's where the error is happening. I'm guessing you aren't calling b2Base.initialize() or something. Post the errors whenever you get the chance.


Top
 Profile  
 
PostPosted: Mon Jun 18, 2012 12:03 am 
Offline

Joined: Tue Apr 17, 2012 12:08 am
Posts: 118
Hi , i am following your tutorial here

https://github.com/jesses/wck/wiki/step ... tart-guide

i do every thing as mentioned, i also copy and paste the folders as mentioned and changed the flash settings, but after all this when i run the flash file it gives the below error---

//////////////////////////////////////////////////////////////////////////////////////////////////////////
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at wck::World/doOutsideTimeStep()
at wck::BodyShape/create()
at misc::Entity/ensureCreated()
at <anonymous>()
VerifyError: Error #1014: Class cmodule.Box2D::CLibInit could not be found.

at wck::WCK/create()
at misc::Entity/ensureCreated()
at <anonymous>()
////////////////////////////////////////////////////////////////////////////////////////////////////////////

Your help will be highly appreciated here,thanks.....

Jin


Top
 Profile  
 
PostPosted: Tue Jun 19, 2012 12:12 am 
Offline

Joined: Tue Apr 17, 2012 12:08 am
Posts: 118
I was able to solve the problem on my own doing a few hit and trials , for any one else facing the problem here is what i did that helped me first of all we have to get all folders inside the wck-lib folder namely box2d, box2das, extras,misc, gravity,shapes,wck...

a) then goto publish settings option in flash from the file menu, then choose flash tab, there you will see swf setting in the second section of panel, check export swc(by default its unchecked).

b)then in first section of this window you will see script label choose actionscript 3 from the dropdown and click settings.....set the source path to the wk\ck-lib folder where you will need to create your project...


c)then go to library option click the + sign to add the path and then choose the red flash file option and from there go to the box2das folder there you will see another swc file icon which is also red , choose this swc file(instead of typing the path follow the step of selecting the file from dialog box).

d) In the top choose wck.WCK as document class and press the green sign to search and validate that it has found the file.....

e)also when you create the world, you have to convert the rectangle that has been given a component definition into a movie clip again ....rather then creating a new movie clip.....

f)then reshape this symbol using the free transform tool and make walls and ground and give the base class as wck.World .....

Hope this helps as it solved my issues....

Regards
Jin


Top
 Profile  
 
PostPosted: Tue Jun 19, 2012 11:56 am 
Offline

Joined: Fri Dec 14, 2007 8:07 pm
Posts: 913
I was scratching my head, I had assumed you had done all that. Glad you got it figured out.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


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 post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group