Viral Resistance
Moderator: Moderator
Re: Viral Resistance
...well that's odd. The first thing I've actually done in T-Engine was to make new drugs and try to figure out good ways to represent addiction. Maybe I was thinking of fallout at the time.
Anyways, the guy is named Deon on the b12 forums. No email listed, but I was just talking with him today so he's no problem to contact.
Anyways, the guy is named Deon on the b12 forums. No email listed, but I was just talking with him today so he's no problem to contact.
Re: Viral Resistance
IMHO addiction should be treated much like a disease, affecting player stats and generating random effects like confusion, blindness, etc.
Points lost and stats affected could depend on drug type, addiction level and time passed since the last dose has been taken; taking a dose "cures" the disease. Obviously avoiding taking a new dose should aggravate the disease but also reduce addiction level over time.
Think of it as a product of A(ddiction) * T(ime), with A starting decreasing at time X following a function f(T, Drug); this way at X you'll have the max negative effects, after X they will start to extinguish by themselves.
Points lost and stats affected could depend on drug type, addiction level and time passed since the last dose has been taken; taking a dose "cures" the disease. Obviously avoiding taking a new dose should aggravate the disease but also reduce addiction level over time.
Think of it as a product of A(ddiction) * T(ime), with A starting decreasing at time X following a function f(T, Drug); this way at X you'll have the max negative effects, after X they will start to extinguish by themselves.
Don't fear the eyes of the Dark Lord / Morgoth I cry
All hope is gone, but I swear revenge / Hear my oath
I will take part in your damned fate
All hope is gone, but I swear revenge / Hear my oath
I will take part in your damned fate
Re: Viral Resistance
Hello, what's the current state of a requirement of a tileset? I've sent you a message on bay12 boards but haven't received an answer yet so I've decided that here I will get your attention faster.
Re: Viral Resistance
Hello Deon and thanks for the PM. There is currently no tileset in the module, and I am just using ASCII characters. I am in the process of adding some of your tiles to the game now and will let you know when they are in so that you can see your handiwork at work! I think that I will be able to cover the majority of the current actors in the game with your tileset, but may have a few requests if you are interested in making a few additional tiles. Oh, and welcome to the ToME forums. 

<DarkGod> lets say it's intended
Re: Viral Resistance
Will you be able to use 32x32 or 64x64? I would like to redraw characters with more details, and to make scarier zombies and new special infected tiles.
Would it be possible to load pictures as PNG rather than some encoded images?
Would it be possible to load pictures as PNG rather than some encoded images?
Re: Viral Resistance
TE4 requires PNG so yes 

[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
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning

Re: Viral Resistance
And I believe the default is 32x32 pixels, so draw on! 

<DarkGod> lets say it's intended
Re: Viral Resistance
Okay, here's a basic character design. As you know, all clothing is placed on separate overlays so you can highly customize any character.

And I've started to draw zombie sprites. Here you see zombies and rotten zombies. I was lazy about fresh zombies so I didn't take a screenshot, they look like naked males with damaged skin and red eyes. And yeah, I plan to make separate female and male zombie sprites (fresh -> normal -> rotten).

I hope you plan to make different zombies out of different genders.
P.S. Ah well, here are the "fresh" zombie and "bomber" sprites:



And I've started to draw zombie sprites. Here you see zombies and rotten zombies. I was lazy about fresh zombies so I didn't take a screenshot, they look like naked males with damaged skin and red eyes. And yeah, I plan to make separate female and male zombie sprites (fresh -> normal -> rotten).

I hope you plan to make different zombies out of different genders.
P.S. Ah well, here are the "fresh" zombie and "bomber" sprites:


Re: Viral Resistance
When I try to load a saved game, the game hangs on the module/save selection screen.
Re: Viral Resistance
Does it just hang, or return the control to you without do anything? If so look at stdout.txt in the executable's folder, last entries should contain the stacktrace of the error that interrupted the loading.Deon wrote:When I try to load a saved game, the game hangs on the module/save selection screen.
Happened to me a couple of times, when messing around with lua scripts

Don't fear the eyes of the Dark Lord / Morgoth I cry
All hope is gone, but I swear revenge / Hear my oath
I will take part in your damned fate
All hope is gone, but I swear revenge / Hear my oath
I will take part in your damned fate
Re: Viral Resistance
Code: Select all
Lua Error: /engine/ButtonList.lua:109: stack overflow
At [C]:-1
At /engine/ButtonList.lua:109 select
At /engine/ButtonList.lua:115 skipSelected
At /special/mainmenu/class/Game.lua:274 onSelect
At /engine/ButtonList.lua:110 select
At /engine/ButtonList.lua:116 skipSelected
At /special/mainmenu/class/Game.lua:274 onSelect
..............
And yeah I can move my mouse but can't click anything/exit "load game" screen.
Re: Viral Resistance
Well, that explains the behavior you described. Stack overflow exception indicates a fatal error occurring in the loading procedure. It may be due to two reasons:
- Infinite recursion in a method call;
- Allocation of an object (probably a table, in lua) which is way too large.
Looking at the rest of the log, it seems to be the first case (endless recursive calls like onSelect -> skipSelected -> select -> onSelect ... when the load button is pressed). Probably a recursion stop condition is not being set for some reason, anyways it seems strange this is occurring since I don't think a module developer would be touching these core scripts
- Infinite recursion in a method call;
- Allocation of an object (probably a table, in lua) which is way too large.
Looking at the rest of the log, it seems to be the first case (endless recursive calls like onSelect -> skipSelected -> select -> onSelect ... when the load button is pressed). Probably a recursion stop condition is not being set for some reason, anyways it seems strange this is occurring since I don't think a module developer would be touching these core scripts

Don't fear the eyes of the Dark Lord / Morgoth I cry
All hope is gone, but I swear revenge / Hear my oath
I will take part in your damned fate
All hope is gone, but I swear revenge / Hear my oath
I will take part in your damned fate
Re: Viral Resistance
Thanks Deon for the images, they look great. In regards to the savefile can you describe the problem with more detail? Are you using the ViralResistance and T-Engine from the repositories? I am trying to duplicate the problem but am unable to, the loading screen works fine for me.
<DarkGod> lets say it's intended
Re: Viral Resistance
I can load TOME characters just fine, but I cannot select nor pick Viral Resistance characters. I use the latest Zip avaliable and t-engine 1.0.0beta9b for Windows.
P.S. if there's at least one TOME character avaliable, I can exit and enter "load game" screen, but if there're just VR characters, I cannot exit it or do anything with it once I am in.
P.S. if there's at least one TOME character avaliable, I can exit and enter "load game" screen, but if there're just VR characters, I cannot exit it or do anything with it once I am in.
Re: Viral Resistance
I see it now Deon. I will start a bug thread for it.
<DarkGod> lets say it's intended