So I have no idea what I'm doing...

If you have a module that you'd like comments on or would like to know how to create your very own module, post here

Moderator: Moderator

Post Reply
Message
Author
wildwolfofdark
Halfling
Posts: 112
Joined: Wed Dec 12, 2012 6:06 am

So I have no idea what I'm doing...

#1 Post by wildwolfofdark »

I'm trying to figure out how to make my own module but I have no idea where to start. I figure making a beginning map would work but no idea how. Any and all help is appreciated.

Castler
Thalore
Posts: 153
Joined: Mon Mar 25, 2013 10:09 pm

Re: So I have no idea what I'm doing...

#2 Post by Castler »

Have you checked the wiki at http://te4.org/wiki/T4_Modules_Howto_Guide? The "Getting Started" page there should get you going, and other pages cover more specific topics.

I'd recommend starting with one of the example modules (as described on the wiki) then either adding basic features (inventory, character sheets, etc. - again, see the wiki) or starting work on whatever will make your module unique.
Qi Daozei (QDZ) - an Oriental-themed fantasy game for T-Engine. ToME Tips - auto-generated spoilers for ToME.

Marson
Uruivellas
Posts: 645
Joined: Thu Jan 16, 2014 4:56 am

Re: So I have no idea what I'm doing...

#3 Post by Marson »

A module will probably be a hefty investment. I've been programming since the early 80's and am familiar with basic ideas of OOP, but some of the code Darkgod came up with made my eyes glaze over. Starting with an addon might be the way to go, say for a race or class. That way you aren't biting off a huge chuck of code to learn all at once.

Grey
Loremaster
Posts: 3517
Joined: Thu Sep 23, 2010 10:18 pm
Location: London, England
Contact:

Re: So I have no idea what I'm doing...

#4 Post by Grey »

Module-making isn't hard at all. Check out some of the other modules made for simpler games to poach code from.
http://www.gamesofgrey.com - My own T-Engine games!
Roguelike Radio - A podcast about roguelikes

Sradac
Sher'Tul
Posts: 1081
Joined: Fri Sep 21, 2007 3:18 am
Location: Angolwen

Re: So I have no idea what I'm doing...

#5 Post by Sradac »

Marson wrote:A module will probably be a hefty investment. I've been programming since the early 80's and am familiar with basic ideas of OOP, but some of the code Darkgod came up with made my eyes glaze over. Starting with an addon might be the way to go, say for a race or class. That way you aren't biting off a huge chuck of code to learn all at once.

Also keep in mind LUA technically isnt object oriented, so that might be why its throwing you off. It "looks" like it is but its about the same as javascript when it comes down to it.

Marson
Uruivellas
Posts: 645
Joined: Thu Jan 16, 2014 4:56 am

Re: So I have no idea what I'm doing...

#6 Post by Marson »

Very good point. Yeah, the table shenanigans is exactly what I had to adapt to.

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: So I have no idea what I'm doing...

#7 Post by darkgod »

What are your eyes glazing over ? :)
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Marson
Uruivellas
Posts: 645
Joined: Thu Jan 16, 2014 4:56 am

Re: So I have no idea what I'm doing...

#8 Post by Marson »

Well, it's not so much *your* code as this being my first experience with LUA. I was assuming LUA was another C++like. It's been 10 years since I've coded on a daily basis, and that was mostly old versions of PHP and VB. Sometimes trying to backtrack through a chain can leave me a little lost. I've never been comfortable with "self", "parent", "this", etc., though I understand their power. My brain works better when an explicit name is used everywhere, even though that's bad practice. Heck, in some ways I'm still stuck in BASIC.

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: So I have no idea what I'm doing...

#9 Post by darkgod »

Ahah I see :)
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Zireael
Archmage
Posts: 449
Joined: Tue Jun 18, 2013 7:24 pm

Re: So I have no idea what I'm doing...

#10 Post by Zireael »

You could look at the example module or at Grey's work or at Qi Daozei or Veins of the Earth. Seriously, when I started Veins, I knew even less than you, Marson.

Marson
Uruivellas
Posts: 645
Joined: Thu Jan 16, 2014 4:56 am

Re: So I have no idea what I'm doing...

#11 Post by Marson »

I'm getting acclimated now. To be honest, I'm very much a hack*, but I'm comfortable in those shoes. I've done a lot of code diving this past week, and I'm learning stuff new to me that I probably should have known back in the day. Gaps like that is one of the hazards of being self-taught, but that's how I love to learn. This has been a lot of fun—even if I do mutter oaths to Crom every 8.72 minutes or so.

*"Hack" as in the old writer's term. If I had been born a decade or two earlier, I probably would have ended up working in some old garage slapping cars back together with duck tape and a smile.

Post Reply