New to AddOns, any help appreciated!

A place to post your add ons and ideas for them

Moderator: Moderator

Post Reply
Message
Author
nsrr
Sher'Tul
Posts: 1126
Joined: Mon Sep 21, 2015 8:45 pm
Location: Middle of Nowhere

New to AddOns, any help appreciated!

#1 Post by nsrr »

I've been playing ToME for several months and have invested hundreds of hours in the game. I've had several ideas for AddOn content, and recently decided to start messing around and see what I could do. So far, not much. Maybe someone can give me some advice? My first attempt is a simple class concept that uses almost entirely talents that already exist. A Wilder mindstar-wielder with stealth. I attempted to make two new talent trees that are nothing but a couple of the original technique trees copy-pasted with their stat requirements and cost changed to fit the class. So, I've been delving through other addons and the limited resources on the wiki and forum, and I have a little bit of coding experience. The addon will show up in my list of addons, but if I try to start a new game with it on then the game gets stuck on the loading screen when the bar hits 100%. I'm guessing there's a syntax error somewhere, but I've been over and over the code, comparing to other addons that I know work, and I while I have found many things that I thought might be causing the problem, nothing has fixed it.

Any help would be greatly appreciated, thank you!
Attachments
tome-prowler.zip
prowler
(10.35 KiB) Downloaded 165 times

Effigy
Uruivellas
Posts: 970
Joined: Fri Oct 10, 2014 4:00 pm

Re: New to AddOns, any help appreciated!

#2 Post by Effigy »

If you get stuck on the loading screen, the first thing to do (other than killing the game process) is to check the te4_tog.txt file in your ToME game directory. The last section of the log should include an error message to indicate why the game crashed.

If you need help deciphering the error message, you can post it here. Also, I recommend coming to the IRC channel #tome@irc.rizon.net where most of the game and addon developers hang out. We can give more direct advice that way.

nsrr
Sher'Tul
Posts: 1126
Joined: Mon Sep 21, 2015 8:45 pm
Location: Middle of Nowhere

Re: New to AddOns, any help appreciated!

#3 Post by nsrr »

check the te4_tog.txt file
Thank you for the quick reply, and thank you for pointing this out. Now I can do some debugging. Reading the code over and over again creates a blindness to missing commas and curly brackets... Of which I have found several so far. I'll keep on plugging.

nsrr
Sher'Tul
Posts: 1126
Joined: Mon Sep 21, 2015 8:45 pm
Location: Middle of Nowhere

Re: New to AddOns, any help appreciated!

#4 Post by nsrr »

Well, the talents that I modified all have question marks for images, and the game graphics are tweaking, but the addon loads. Progress! I will have to jump on IRC at some point. First I'll sift through the code a bit more. And sleep...

Effigy
Uruivellas
Posts: 970
Joined: Fri Oct 10, 2014 4:00 pm

Re: New to AddOns, any help appreciated!

#5 Post by Effigy »

Most talents get their icon from an image of the same name, I think. If you renamed the skills, you'll need to include new icons with those names or specify an image with a different name using the image field.

nsrr
Sher'Tul
Posts: 1126
Joined: Mon Sep 21, 2015 8:45 pm
Location: Middle of Nowhere

Re: New to AddOns, any help appreciated!

#6 Post by nsrr »

Yeah, the more I delved into it the more I saw a lot of the talents were not going to work because many function through if statements in the combat engine that look for specific talent names. I get the impression that hooks are the way around this, but I'm still trying to figure those out. I started this addon as a learning project, and it certainly is that. Anyway, I have a version now that is playable and instead of using just wil and cun as I was going for, it's a hybrid that includes dex as well. I'm going to start some play throughs to see what all I want to change, once I get the hang of things.

Post Reply