The Dink Network

The tears of the devil debug thread

October 14th 2009, 04:28 PM
knights.gif
merder
Peasant He/Him Netherlands
The Voice in the back of your head! 
I'm debugging a d-mod before igo on with m other (though slow on progress)d-mod.
but it is above my current d-modding skills. so i'm asking a little help.

ok the major bugs are
1. the purple bonca bug.(need is say more?)

2. the !nsane class monster don't drop gold(though they are supposed to and usually enough to satisfy the potion shop ducks(might ad a 3rd in the health shop for defense).
i might be in the emake so here is their emake segment
void !nsane ( void )
{
int &mcrap = random(20,1);

if (&mcrap == 2)
 {
 //lets give 'em a large heart
 int &crap = create_sprite(&save_x, &save_y, 6, 54, 1);
 sp_script(&crap, "heart");
 return;
 }

if (&mcrap == 3)
{

    &mcrap = random(3,1);

        if (&mcrap == 1)
         {
        //give them food type 1
        int &crap = create_sprite(&save_x, &save_y, 6, 421, 1);
        sp_script(&crap, "sfood");
        }
        if (&mcrap == 2)
        
        {
        //give them food type 2
        int &crap = create_sprite(&save_x, &save_y, 6, 421, 2);
        sp_script(&crap, "sfood");
        }
        
        if (&mcrap == 3)
        
        {
        //give them food type 3
        int &crap = create_sprite(&save_x, &save_y, 6, 421, 7);
        sp_script(&crap, "sfood");
        }
        
        if (&mcrap == 4)
        
        {
        //give them food type 4
        int &crap = create_sprite(&save_x, &save_y, 6, 421, 8);
        sp_script(&crap, "sfood");
        }
   return;
}

if (&mcrap == 4);
{
 //statpotion won
&mcrap = random(70,1);

        if (&mcrap == 1)
         {
        //give them food type 1
        int &crap = create_sprite(&save_x, &save_y, 6, 421, 1);
        sp_script(&crap, "bpoiton");
        }
        if (&mcrap == 2)
        
        {
        //give them food type 2
        int &crap = create_sprite(&save_x, &save_y, 6, 421, 2);
        sp_script(&crap, "rpotion");
        }
        
        if (&mcrap == 3)
        
        {
        //give them food type 3
        int &crap = create_sprite(&save_x, &save_y, 6, 421, 7);
        sp_script(&crap, "ppotion");
        }
        
        if (&mcrap == 4)
        
        {
        //give them food type 4
        int &crap = create_sprite(&save_x, &save_y, 6, 421, 8);
        sp_script(&crap, "apotion");
        }
   return;
}

debug("Making gold200");
 //lets give 'em a random amount of gold
 int &crap = create_sprite(&save_x, &save_y, 6, 178, 4);
 sp_script(&crap, "insgold");
 return;
}

the strange thing is i on;y copy and pasted it and added the potion section. if gold was dropped i could have reduces the likelyhood of gold with another if statement. so it would make harder again.
the gold it self works just fin. you can find some piles of it deep in the insanity caves open only on !nsane mode.

3. the corpse sprites don't show the corpses as they are supposed to. even though they are barely altered original scripts. and this bug mainly focuses on slayers and bosses.(for the bosses hard and !nsase).

October 17th 2009, 02:28 PM
goblinh.gif
thor
Peasant He/Him United Kingdom
whos afraid of the big bad duck 
script looks fine to me though im no expert! sorry i cant help but there must be someone here who can! good luck!
October 17th 2009, 04:27 PM
burntree.gif
Striker
Noble She/Her United States
Daniel, there are clowns. 
Have you tried renaming all "!nsane" functions to "insane"? In most programming languages "!" is a reserved operator and trying to name anything with a "!" will just cause a whole load of FAIL. Even if DinkC somehow accepts this, it's bad form, and most programmers heads will explode trying to figure out just what exactly you're trying to do.
October 18th 2009, 04:20 PM
knights.gif
merder
Peasant He/Him Netherlands
The Voice in the back of your head! 
I tried that and nothing changed. at first the drop rate seemed to have increased. but that soon turned out to be pure luck(3 screens of !nsane class monsters taught me that(on 1 i won a loaf of bread and on the last a thank fully accepted mega-potion was won(and they where jam packed with them monsters)).
December 8th 2009, 01:27 PM
knights.gif
merder
Peasant He/Him Netherlands
The Voice in the back of your head! 
I know normally it is a offense reviving a thread but i fixed the money bug. turns out a out of place semicon was the problem . now i just need to fix the infamous purple bonca bug and i can add the special !nsane ending..