View unanswered posts | View active topics It is currently Thu Jan 09, 2025 10:30 pm



Reply to topic  [ 12 posts ] 
 Universal Tutorial? 
Author Message
User avatar

Joined: Mon Jul 27, 2009 4:07 am
Posts: 6
Reply with quote
Post Universal Tutorial?
Okay, I really hate to be starting a new thread for something that seems so easy to find, but I'm just looking for a simple intro tutorial/guide to CC modding. I have plenty of experience with multiple languages, so I'm fine syntax wise. I just need the basics of what files to edit, and that sort of thing. I'm completely surprised that there's nothing stickied in the Mod Making forums.

I'm not an idiot, so please don't flame this thread. If there already is a thread, it sure isn't very obvious, and it didn't come up in my search for the keyword "tutorial" in the Mod Making section.

Thanks. If there is none, than just a few steps that would allow me to figure it out myself would suffice.


Mon Jul 27, 2009 5:10 am
Profile
User avatar

Joined: Mon Jun 30, 2008 9:13 pm
Posts: 499
Location: Finland
Reply with quote
Post Re: Universal Tutorial?
You should try the stickied "Lord Tim's Tutorial's" topic. Chapter four looks like what you need.


Mon Jul 27, 2009 10:14 am
Profile
User avatar

Joined: Sun Jan 11, 2009 10:54 am
Posts: 365
Reply with quote
Post Re: Universal Tutorial?
this might help...
a guide i wrote a month or 2 before with (almost) every tip and tutorial i found in data realms (has sprite tutorials too) but i was not so sure abute releacing it...


Attachments:
guide.pdf [1.11 MiB]
Downloaded 411 times
Mon Jul 27, 2009 2:04 pm
Profile
User avatar

Joined: Mon Jul 27, 2009 4:07 am
Posts: 6
Reply with quote
Post Re: Universal Tutorial?
Okay, so the thing that was confusing me is the fact that I can't find a single drop of Lua anywhere in the mods I've downloaded.

So, I'm assuming Lua is more of the exception than the rule?

So say I wanted to make my character jump instead of using a jetpack. Would I use .ini's or Lua?

vagyr wrote:
this might help...
a guide i wrote a month or 2 before with (almost) every tip and tutorial i found in data realms (has sprite tutorials too) but i was not so sure abute releacing it...

Thanks! That looks like it'll help a lot.

piipu wrote:
You should try the stickied "Lord Tim's Tutorial's" topic. Chapter four looks like what you need.
I looked at that one, but I couldn't find PromGrounds.rte anywhere. I didn't actually look to much further, mostly due to the fact that I though Lua was the mainstay of CC mods as opposed to .ini's.

I'm going to look more into .ini's, then. Thanks.


Mon Jul 27, 2009 6:31 pm
Profile
User avatar

Joined: Sun Jan 11, 2009 10:54 am
Posts: 365
Reply with quote
Post Re: Universal Tutorial?
the pdf i gave you have an introduction in modding with what you need and how to mod .ini files...
and in the last pages there is a section called lua modding.


Mon Jul 27, 2009 6:38 pm
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post Re: Universal Tutorial?
TheBigCheese wrote:
I didn't actually look to much further, mostly due to the fact that I though Lua was the mainstay of CC mods as opposed to .ini's.

Lua is aptly renamed Sparkle Magic because it does special things not possible with ini modding, but ini modding is the meat and potatoes of Cortex. Without the ini, you'd have nothing of value.
TheBigCheese wrote:
So say I wanted to make my character jump instead of using a jetpack. Would I use .ini's or Lua?

You can use either. Ini modding might be a bit easier. Extending your example, to accomplish a jump instead of a jetpack in ini, you'd simply change the jetpack emitter so that it emits more particles for a shorter time, short enough to look like a jump. In Lua, you'd set the update for the actor to check if the jump/jetpacking state is active, then add upward velocity to the actor. There's more to it than that, but you get the idea.


Mon Jul 27, 2009 6:59 pm
Profile
User avatar

Joined: Mon Jul 27, 2009 4:07 am
Posts: 6
Reply with quote
Post Re: Universal Tutorial?
vagyr wrote:
the pdf i gave you have an introduction in modding with what you need and how to mod .ini files...
and in the last pages there is a section called lua modding.

Yeah, I'm reading through it. I think it'll probably cover my .ini needs, at least for the beginning.

Duh102 wrote:
You can use either. Ini modding might be a bit easier. Extending your example, to accomplish a jump instead of a jetpack in ini, you'd simply change the jetpack emitter so that it emits more particles for a shorter time, short enough to look like a jump. In Lua, you'd set the update for the actor to check if the jump/jetpacking state is active, then add upward velocity to the actor. There's more to it than that, but you get the idea.

Okay. Are there any tutorials specifically on Lua for CC? All of the ones that I've seen only discuss the syntax, but never get to any of the needed functions and how they are called. Personally, I'd prefer to use Lua as opposed to .ini's, just because I'm familiar with that style of coding and right now I can use the default human actors as templates.

Also, is there a way to test changes to .ini's and Lua scripts without needing to reload the entire game? The actor editor looks like it's what I need, but I haven't looked into it too much.


Mon Jul 27, 2009 7:50 pm
Profile
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post Re: Universal Tutorial?
PresetMan:ReloadAllScripts()

Actor editor reloads everything referenced by the actor, btw.


Mon Jul 27, 2009 8:26 pm
Profile
Forum Moderator
User avatar

Joined: Fri Feb 02, 2007 3:53 pm
Posts: 1896
Location: in my little gay bunker
Reply with quote
Post Re: Universal Tutorial?
I believe that's incorrect. IIRC the actor editor only reloads the ini the actor is in


Mon Jul 27, 2009 8:37 pm
Profile
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post Re: Universal Tutorial?
Hmm. What if it's limbs are in a separte ini?


Mon Jul 27, 2009 8:57 pm
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post Re: Universal Tutorial?
TheBigCheese wrote:
Are there any tutorials specifically on Lua for CC?

I don't believe there are. Lua in CC is so undocumented and hacky right now that nobody has bothered to try to make a coherent tutorial for it, especially since we're hoping for more documentation and fixes for the hacks that Data passed through.


Mon Jul 27, 2009 10:23 pm
Profile
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post Re: Universal Tutorial?
I could compile a list of hackish solutions.


Mon Jul 27, 2009 10:35 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 12 posts ] 

Who is online

Users browsing this forum: No registered users


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:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.041s | 14 Queries | GZIP : Off ]