Ted's RPG Rant

A place to rant about RPG games, particularly the Temple of Elemental Evil. Co8 members get a free cookie for stopping by. Thats ONE cookie each, no seconds.

Thursday, June 29, 2006

ToEEWB Tips and Tricks (and Traps)

Well I am off work for a couple days with a bit of a flu so a nice time to do a tutorial.

There have been a huge number of changes to ToEEWB lately, as usual Agetian is adding stuff faster than we can even figure it out ;-), and while a lot of it (such as the whole existance of Sector Sort) has been widely talked about, in a few weeks or so it may all be forgotten and newcomers to ToEEWB may still make some basic errors. So here are a list of the things I do to avoid mistakes, and a list of the common mistakes I still do every time but know how to remedy. I will probably update this or add a parts 2, 3, 4 etc as time goes by. And yes I may simply be repeating certain things found in the tutorials and documentation, but I'm fine with that 8^D

Tip 1: Do the footsteps first!

Damn I can't emphasise this enough people. If you are making an indoor map, or an outdoor map on stone, or anything where the dominant footstep sound will not be 'dirt' (the default one), the first thing u wanna do is flag every tile on the map as the dominant sound: stone, or wood for indoor floorboards, or ice (that works well for carpets) - they are about the only ones that work I think. Must see if we can hack some more in, the flags are there to be used :-).

How do u do that? Well I'm glad you asked. Simple enough: open your new sector, select the little dooby marked 'Material Type / Footstep Sound' and select whatever you want. Then, update the WHOLE SECTOR, using the button 'Update all tiles in the sector'. This may take a while - it surely does on my 1.6Ghz P4. Then SAVE THE SECTOR.

Here's a pic:

Afterwards, you can run around on the sector, paint your walls or whatever, and you don't have to worry about going back and adding footsteps here and there - thats a pain. And yes, I wish I practised this all the time! About 90% of the maps in KotB so far I forgot to do it, in fact it is only a handful of maps here n there I remembered. Thats gonna be a pain 2 fix later, let me tell you.

Now: make sure you don't put anything in those little sub-tile boxes before you do this, cause if u mark so much as one subtile as blocked or something, you will mark every lawt tile as blocked and u will have to start again (u should just delete the file in that case).

O yeah - how do u have a file in the first place? Well the easiest thing is to go onto the map in question, mark one tile as blk() or fly() or whatever, that will create the sector file, then just do as above and it will copy over that one tile.

Tip 2: Getting the damn 'Update a box' thing to work

I screwed this up so often I eventually told Ag, "hey this doesn't work" and he said, "yeah it does, works fine for me" (this was a while back). It works logically rather than intuitively.

Have another look at the pic, the 'Update a box' button is at the bottom. There are coordinates next to it: you put in coordinates and the rectangle thus created forms a box to update.

Now, since there are only 2 coordinates, to create a box u have to put in the opposite corners, right? Absolutely, its common sense. BUT, if u intuitively put in the upper left / bottom right corners, you will get an error message. You have to put in top right / bottom left, because the tiles count forward in both x and y directions that way. Makes sense logically, but u have 2 think about it.

So for the following box I have marked the ones you do first and second. Note that I only marked the middle subtile as blk(), wtr() and extend svb to get this effect: if any part of a tile is marked, the whole tile will turn up in the Visual Sector Painter like that.


Tip 3: Don't add object flags to embedded items

Embedded suff - that is, scenery, doors, trees, ladder icons etc - shouldn't have certain instinctive flags added. I found this out when I tried to add 'OF_PROVIDES_COVER' to a tree, since it seemed reasonable enough that firing through its foilage would provide cover (of course, you sector the base as blk() so people can't fire through the trunk or run through it). What it did was make the tree 'interactive', so when I tried to run behind it, it instead took this as clicking 'on' the tree and my PC just ran up to it. Heck, you might be able to talk to trees this way, I don't know, must try that :-) But since it wasn't what I wanted (and a tree has a heck of a built-in size, there was this huge circle selected around the base when I clicked on it and nothing else could be added in its vicinity) it was a P.I.T.A. As a general rule of thumb though, you add effects to embedded items by sectoring them in, since they aerembedded in the sector file: to make them NO_BLOCK just leave them alone and you can walk through them, to make the SHOOT_THROUGH flag the tile as fly() etc. Leave the flags for the mobs.

What object flags do you need to add to a mob? If you do look at a mob from the game, you will find all sorts of object flags set: typically, OF_HEIGHT_SET, OF_RADIUS_SET, maybe OF_FLAT (for items), maybe OF_SEE_THROUGH, OF_SHOOT_THROUGH, OF_CLICK_THROUGH etc. I don't really bother with any of these except OF_SEE_THROUGH, because you don't have to set the radius, height etc in the mob - that is all in the prototype. Of course, if you WANT to, sure you can fiddle with these :-) Note that click through means just that, your 'clicks' go right through it, so don't set this on a monster with a dialogue file (or that is going into combat or anything).

Hmmm... maybe I should have made the trees 'OF_PROVIDES_COVER' and 'OF_CLICK_THROUGH'. Heh, only just thought of that. Well there u go ;-)

Anyways, the only flags I really bother with are OF_SEE_THROUGH and OF_PROVIDES_COVER(since you don't want monsters obscuring their surroundings that much, and critters should of course provide cover for critters behind them). By all means use more, but don't get spooked by them all. An incomplete list of their meanings can be found HERE.

Tip 4: You don't have to draw things for them to have an effect

This specifically refers to the infamous green fog ball. To get this happening, u flag it as 'OF_DONTDRAW'. Then you don't see it - but it still makes fog. Yippee :-) Here is a quick look at it in action in the woods of the mad hermit in KotB:

Fire in the sky... ;-)

For the record, I figured this out pretty quickly, its not the reason the ball showed up on revisits. That was due to the embedded items being out of order. To fix this, you use Sector Sort: recent readers will know this, future readers may not.

Tip 5: Use Sector Sort

Reminds me of an Aussie actor in an American accent declaiming, "Wear Sunscreen". The boss at work has been playing that a lot lately ;-)

Anyways, Sector Sort is available in the new 'add-ins' section of ToEEWB (its at the top with File, Help etc). It is easy to use, in fact just clicking on it will cause it to sort every item in your Sectors folder and then gives you the option of sorting stuff in other folders.

When to use it: Well really, any time you make a new sector ;-) But specifically, any time you find new items in sectors aren't working properly. This is particularly the case if you find the first time you go to a sector your embedded items work fine, but the second time they cause issues (I have had it with the green fog ball showing up, and with internal doors). Click Sector Sort, and wah-lah! O and no, you don't have to click save after, because it does it automatically to all the files whether you open them or not.

Tip 6: Making your background interactive

This is more of a KotB thing, but I think I will get this put into ToEE since people are adding so much new content nowdays.

Cuchulainn made a model with a transparent mesh (1 single pixel, to be precise). To use it, simply make a proto of whatever you want, an NPC, a container or whatever it is painted on your map you want to interact with (eg the talking tree mentioned above, this would be another way to make it), then use this model in the proto (its 10171 in KotB, {10171}{Weapons\handle_t} to be specific though it is not in the current release). You will interact with the model as far as the game engine is concrened, but you will see the painted background (and hovering text thing) so you are, to all intents and porpoises, interacting directly with what you see onscreen. Nice easy workaround for our lack of modelling capacity 8^) Here's a pic in action:

Yeah, thats right, I've added HOLLOW STUMPS. And this one has a MAGIC AXE in it. Whaddya gonna do about it?!?

[Ahem] Sorry, don't know what came over me. Anyway, that'll do for now. Next time, lights: like Ag said, it will all look better with lights (for the record, I HAVE been taking that into account - only have to look at how sweet that Gnarley Forest map came out :-) )

Friday, June 23, 2006

Breakthrough

I do believe I have worked out how to get inventory respawns to change. Its from obj_f_container_inventory_source, and I successfully changed that of the Blacksmith (photo below: I simply changed it to the moneychanger's list. Of course I should be able to change it to something else, hopefully). I COULDN'T change the damn leatherworker, sod him: has anyone ever seen his inventory respawn? [sigh] Anyways, proper 'masterwork items' inventory to follow :-) And YES I am keeping the gaint's head quest, though my dream of having the different merchatnts selling different masterwork items by quest (as originally suggested by Allyx, so for instance the Leatherworker would sell the leather masterwork gear, but not til u healed Bing etc) is in jeopardy if respawning is not for everyone. Also, the new masterwork inventory may not respawn, but we will see, o yes precious, we will see. I have an idea for a workaround if that happens.

Edit: Well I got sent home from work, dang boss double-booked the shift again [sigh]. So I got to do some more work on this. I now have a complete respawning inventory of masterwork items for the Blacksmith that kicks in when you complete the giant's head quest, and have thought of a particularly sweet work-around for the Leatherworker thing. Should be finished tomorrow hopefully. I also have to add some new items to Ah Fong's inventory, and might try to figure out why that isn't respawning too. Here's the respawned Blacksmith's inventory packed with masterwork gear: those throwing daggers are expensive!

Tuesday, June 20, 2006

So very near!

Wow, I've been neglecting this thing! And I got a half-finished tutorial on reputations just lying there, too.

Anyways, the KotB release is done EXCEPT for the new portraits by Rogue Trader - I got em, but haven't added them yet or matched them with their various owners. Since he was good enough to do them, I want them to go in this release. Ah well, once again I must say, tomorrow...

Monday, June 12, 2006

Woe is Ted part 2

Ok I have an operating XP thing but it is not mine, it is a new install I did on a seperate partition to try to repair my current one (since my 98 OS is of course useless, not being able to even see NTFS. Hwowever the corrupt files are essential ones (obviously) so I can't copy them over since my new XP install says stuff like "sorry, we're using those files you are trying to copy". Well DERRRR!

I can't even log into Co8 since I can't get at my passwords, though I did cruise by to look at the KotB forum. Can someone put up a post in the Status Report thread saying, "hey, Ted is absent from the net with computer issues but is working on KotB on a different OS and a release is imminent"? Would really help.

Go Australia at the World Cup! AUSSIE AUSSIE AUSSIE! OI OI OI!

Wednesday, June 07, 2006

Woe is Ted

How pitiful Co8 must be without my spam!

My PC is down - that is to say, my copy of XP has become corrupt and I have no way of getting online. I also have no disk to fix it with, and no time for workarounds before this weekend.

Upside? With no internet to distract me, no CounterStrike to play etc, I am free to work on KotB :-) As many of you know, I do my modding in Win98, and that is coming along nicely. In fact, we have (yet another) release date for the next release - next Wed, one week from today (got a 5-day weekend coming up). I've got a couple of quests all the way through to completion and a much clearer idea of what I want in the next release. So all in all, its all good.

Don't expect me to answer mail for a few days either ;-) For the record, I am typing this on a PC at work with no mouse, navigating web pages with the keyboard. Blech!

Thursday, June 01, 2006

Living the Australian Dream

Thats right, I'm...

ON COMPO!!!

Hurt my shoulder lifting a kiddy the other day, but I don't get to stay home alas... they have me in the office doing filing and crap (and surfing Co8 on the net of course). It was only a muscle strain, back to work on Saturday.

Damn I got some ideas for this and that in KotB, why won't they let me go home???