Kaatil's Modularized Trigger System

by Unknown

Back to Mechanic's Corner.

Unknown2008-01-19 04:56:54
I have modified lastest version of IMTS with only atcp so it can detect lusternia's atcp and display it properly. It merely only hacked where i copy some atcp from lmts into imts and it seem work fine so far as it is concerned. I haven't included the mapper that work for lusternia yet. prehap next version.(i am sure mapper in LMTS will still work in this lastest modified version of KMTS. probably.)

KMTS source to download

i have compiled it under linux with mingw x-compiler and have it tested it on wine. It seem work fine, but i don't know if it will work fine on real window OS system. Let me know! smile.gif


http://imts.sf.net have an ilua tutorial how to get your code working under lua. Have fun.
Unknown2008-01-19 10:07:17
If you want to, I could give you admin rights for the LMTS project at sourceforge. I currently have no interest nor time to delve into it myself so the silver wrench is better off passed on to someone else.
Unknown2008-01-19 13:10:07
Honestly, there is no reason to use KMTS when LMTS works fine on Linux. You're compiling it with a Windows compiler and running it under Wine, when you should just be compiling it with gcc on Linux to get a native executable. So, what was your reasoning for creating your own version?
Unknown2008-01-19 16:59:37
QUOTE(Zarquan @ Jan 19 2008, 02:10 PM) 478326
Honestly, there is no reason to use KMTS when LMTS works fine on Linux. You're compiling it with a Windows compiler and running it under Wine, when you should just be compiling it with gcc on Linux to get a native executable. So, what was your reasoning for creating your own version?

Seconded on the compiling. That IS crazy.

The new IMTS version does bring some nifties, atleast to the ILua module, so I would definitely understand why someone would do that. However.. None of the old modules (IMapper/LMapper, ILua, Voter, etc) will work in the new IMTS/KMTS, so unless you also port their new variants over you really haven't achieved anything useful.

I wholeheartedly support this initiative though, and the offer stands. Seeing as how there's no more active devs for LMTS, if you want to take over the project, you can.
Unknown2008-01-19 17:24:48
If the new IMTS stuff is really that good, I guess I'll have to download it and make a new LMTS one of these days. If I do, I may just make it publicly available for others to enjoy.
Eldanien2008-01-19 18:17:29
QUOTE(Zarquan @ Jan 19 2008, 11:24 AM) 478361
If the new IMTS stuff is really that good, I guess I'll have to download it and make a new LMTS one of these days. If I do, I may just make it publicly available for others to enjoy.


OGODPLEASE!
Unknown2008-01-22 03:34:55
me two. i am no good coder, i just hijack the code to replace atcp code. I am just very-good (or just immediate) lua coder, but not a c coder. tongue.gif


second, the reason i like lastest imts code because it give me a good idea to make mapper in lua code..... prehap! mUHAHAHAHAHA... ahem.. athough i doubt it will be easy to do that anyway. tongue.gif
Forren2008-01-22 03:37:25
What new features are in the new IMTS? I'm still using the LMTS here.

Speaking of which - I'm really interested in finding a way to forward ATCP from Mudbot to the client, for Cmud's use. Zarquan, I believe this would interest you as well. I've taken a look at the code, best success was getting it to forward the ATCP commands in plain text.
Unknown2008-01-22 12:29:58
I've downloaded the new IMTS code, so I'll take a look at modifying the new mapper module with changes similar to what I did for the LMTS and also see about forwarding the ATCP codes properly. No guarantees, but I will try. smile.gif
Forren2008-01-22 14:17:42
QUOTE(Zarquan @ Jan 22 2008, 07:29 AM) 479389
I've downloaded the new IMTS code, so I'll take a look at modifying the new mapper module with changes similar to what I did for the LMTS and also see about forwarding the ATCP codes properly. No guarantees, but I will try. smile.gif

Cool - let me know if I can be of any help! Forwarding the ATCP codes to CMud (specifically h/m/e and room name and room exits) would be awesome.
Dysolis2008-01-22 20:03:45
this is for Cmud I take it?
Eldanien2008-01-22 20:17:24
*MTS is client independent. It's mostly used for mapping, but it has a few other nifty features. You connect to it, it connects to Lusternia, and acts as a proxy.

IMTS and LMTS are both on Sourceforge, with IMTS being for Imperian and LMTS being a port for Lusternia. KMTS as indicated in the original post is another offshoot.

I'm drooling with anticipation over Zarquan's rework of the latest IMTS.
Unknown2008-01-22 20:47:32
I started updating the latest IMTS stuff for Lusternia today. Don't expect me to release anything for a good while, though. I'm not spending hours and hours on it each week. However, being already familiar with the code, it should go faster than the first time.

I'm just a little sad that the map load segmentation fault bug is still in this version. sad.gif
Sybl2008-01-23 04:40:42
My only request for updates: Make it support wrapwidthwidth over 80. Even better, make it not crash when my wrapwidth is 0Yay for very large fonts.
Forren2008-01-23 04:51:16
QUOTE(Sybl @ Jan 22 2008, 11:40 PM) 479677
My only request for updates: Make it support wrapwidthwidth over 80. Even better, make it not crash when my wrapwidth is 0Yay for very large fonts.


It works perfectly with wrapwidth 250.
Eldanien2008-01-23 10:12:43
I have a crash bug with it (CroX has been pestered to no end about this), though I haven't narrowed down the cause. I'll have to see if wrapwidth has anything to do with it.
Unknown2008-01-23 12:57:58
I'm hoping to make it support wrapwidth 0, actually, but it'll likely require a separate version (maybe some precompiler switches to keep the source as one). Most of the triggered stuff in the modules depend on wrapwidth 80 to locate people and follow teleports, which is why the need for a separate version. Wrapwidths other than 80 and 0 may work, but they won't be officially supported.

I've already ported over about half of my changes from the old LMTS. This is going a bit faster than I expected. I'm even making a few nicer enhancements in this version that weren't in the previous one.
Unknown2008-01-24 06:07:08
did you changing things from my kmts port? anyway.. i dont think warpwidth is probably a issue.. since i took a look at place of Moonhart mother tree... and it didnt crash on me with Warpwidth zero.

but then maybe other place i havent look is really lengthy.
just a thought!


other thing i am so shocked that this lastest cvs imts version dont have prompt_handler anymore.. or is it? hmm is it possible to add this one? thanks!

EDIT:
how you code it for the prompt line? thank again!
Unknown2008-01-24 07:49:34
ah ha, i found a way to display prompt with atcp correctly. neato.

it has to do with mb.prompt and replace it with 'replace(-1, (whatever prompt here you want to replace with...))

mb.prompt show the prompt line, and -1 is where promptline is at so you can replace it with something fancy prompt line.
Unknown2008-01-24 12:44:03
Yes, I'm changing lots of things that aren't part of your KMTS port. I'm improving things like mapping in the trees, on the rooftops, flying in the air, etc, and speedwalking past cows and doors, and locating people through scent, scry, window, deathsight, etc.

I'm also updating it for Lusternia's ATCP and then I'll be looking for a way to use a passthrough option for the ATCP codes to be sent to the client.

I think the wrapwidth is a problem because of things like shield shrines, which use the same color as a room title but are much longer. The mapper doesn't allocate a very large buffer to capture things like room titles, and so it overflows the available space and crashes. If someone can give me a very specific example of when this occurs in the game, however, I'd be able to verify that this is the case and make sure I fix it right.