ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Fri Aug 17, 2018 12:41 pm

All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Sat Jan 25, 2014 10:13 pm 
Offline
Halfling

Joined: Wed Dec 12, 2012 6:06 am
Posts: 112
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.


Top
 Profile  
 
PostPosted: Sun Jan 26, 2014 12:42 am 
Offline
Thalore

Joined: Mon Mar 25, 2013 10:09 pm
Posts: 153
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.


Top
 Profile  
 
PostPosted: Sun Jan 26, 2014 3:15 am 
Offline
Uruivellas

Joined: Thu Jan 16, 2014 4:56 am
Posts: 645
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.

_________________
My addons: UI Mod, Auto-explore & Rest Tweaks, Dev Tools,
Bosses Gone AWOL??!?


Top
 Profile  
 
PostPosted: Mon Jan 27, 2014 1:14 am 
Offline
Loremaster

Joined: Thu Sep 23, 2010 10:18 pm
Posts: 3516
Location: London, England
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


Top
 Profile  
 
PostPosted: Tue Jan 28, 2014 7:08 pm 
Offline
Sher'Tul

Joined: Fri Sep 21, 2007 3:18 am
Posts: 1081
Location: Angolwen
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.


Top
 Profile  
 
PostPosted: Tue Jan 28, 2014 10:49 pm 
Offline
Uruivellas

Joined: Thu Jan 16, 2014 4:56 am
Posts: 645
Very good point. Yeah, the table shenanigans is exactly what I had to adapt to.

_________________
My addons: UI Mod, Auto-explore & Rest Tweaks, Dev Tools,
Bosses Gone AWOL??!?


Top
 Profile  
 
PostPosted: Wed Jan 29, 2014 8:49 am 
Offline
Master of Eyal

Joined: Wed Jul 24, 2002 9:26 pm
Posts: 10228
Location: Angolwen
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 ;)


Top
 Profile  
 
PostPosted: Wed Jan 29, 2014 11:37 pm 
Offline
Uruivellas

Joined: Thu Jan 16, 2014 4:56 am
Posts: 645
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.

_________________
My addons: UI Mod, Auto-explore & Rest Tweaks, Dev Tools,
Bosses Gone AWOL??!?


Top
 Profile  
 
PostPosted: Thu Jan 30, 2014 8:35 am 
Offline
Master of Eyal

Joined: Wed Jul 24, 2002 9:26 pm
Posts: 10228
Location: Angolwen
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 ;)


Top
 Profile  
 
PostPosted: Thu Jan 30, 2014 10:25 am 
Offline
Archmage

Joined: Tue Jun 18, 2013 7:24 pm
Posts: 449
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.

_________________
Working on a T-Engine game
Veins of the Earth

Veins of the Earth ModDB page


Top
 Profile  
 
PostPosted: Thu Jan 30, 2014 2:53 pm 
Offline
Uruivellas

Joined: Thu Jan 16, 2014 4:56 am
Posts: 645
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.

_________________
My addons: UI Mod, Auto-explore & Rest Tweaks, Dev Tools,
Bosses Gone AWOL??!?


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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:  
cron
Powered by phpBB® Forum Software © phpBB Group