Forum index VCMI Project - Heroes 3: WoG recreated
Forum of the project aiming to recreate best turn-based strategy ever!

FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  StatisticsStatistics
RegisterRegister  Log inLog in  AlbumAlbum  DownloadDownload

Previous topic :: Next topic
Custom creature crashes the game
Author Message
speehgee 

Age: 19
Joined: 17 Jul 2017
Posts: 8
Posted: 2017-07-17, 18:21   Custom creature crashes the game

I've made a creature mod and for some reason it keep crashing the game and I can't find why does it do that.

Here is the creature's code:
Code:

{
    "lostsoul" :
    {
        "name" : { "singular" : "Lost Soul", "plural" : "Lost Souls" },
       
        "level" : 1,
       
        "faction" : "neutral",
       
        "cost" : { "gold" : 120 },
       
        "fightValue" : 95,
       
        "aiValue" : 95,
       
        "growth" : 20,
       
        "hordeGrowth" : 5,
   
        "attack" : 1,
       
        "defence" : 3,
       
        "hitPoints" : 5,
       
        "speed" : 10,
       
        "damage" : { "min" : 1, "max" : 2 },
        "advMapAmount" :{ "min" : 20, "max" : 15 },

        "abilities" :{ "canFly" : { "type" : "FLYING" } },

        "hasDoubleWeek": true,
       
        "graphics" :
        {
            "animation" : "doom/battle/lostsoul.def",

            "map" : "doom/map/lostsoul.def",

            "iconSmall" : "doom/iconssmall/lostsoul.png",

            "iconLarge" : "doom/iconsbig/lostsoul.png",

            "timeBetweenFidgets" : 10,

            "animationTime" : {    "walk" : 1.00, "idle" : 10.00, "attack" : 1.00,"flight" : 1.00 }
        },

        "sound" :
        {
            "attack": "doom/lostSoul/attack.wav",
           
            "defend": "doom/lostSoul/defend.wav",

            "killed": "doom/lostSoul/kill.wav",

            "move": "doom/lostSoul/move.wav",

            "wince": "doom/lostSoul/wince.wav"
        }
    }
}
 
     
SXX 
VCMI programmer

Age: 25
Joined: 04 Jul 2014
Posts: 387
Posted: 2017-07-17, 19:08   

Can you please upload full mod on forum?
 
     
speehgee 

Age: 19
Joined: 17 Jul 2017
Posts: 8
Posted: 2017-07-18, 15:12   

Allright, I've included the file.

DoomMod.zip
Download 4 Time(s) 72.76 KB

 
     
Warmonger 
VCMI programmer


Age: 28
Joined: 07 Jun 2008
Posts: 1545
Location: Warsaw, Poland
Posted: 2017-07-18, 15:50   

When does it crash? At launch, at map load, during fight?
_________________
Think twice if you really need to send me private message. Use public forum for general questions.
DJ Warmonger blog
beegee wrote:
Warmonger, you are the best!
 
 
     
misiokles 

Joined: 12 Nov 2015
Posts: 180
Posted: 2017-07-18, 18:55   

Two bugs:

"defense" not "defence"
"horde" not "hordeGrowth" (note that you may skip "horde" command because it is indicator for creature rowth in horde building inside the town, and your creature is neutral).

Cool unit btw :)

lala.png
22 Time(s) 818.79 KB

 
     
speehgee 

Age: 19
Joined: 17 Jul 2017
Posts: 8
Posted: 2017-07-18, 21:02   

Allright, thanks for helping!
 
     
speehgee 

Age: 19
Joined: 17 Jul 2017
Posts: 8
Posted: 2017-07-18, 21:17   

Well I did tried that, it's working in the editor, but still crashing the game on startup.
 
     
misiokles 

Joined: 12 Nov 2015
Posts: 180
Posted: 2017-07-18, 21:25   

So please try this version. I have no problem with your mod after these two fixes....

DoomMod.rar
Download 7 Time(s) 64.7 KB

 
     
speehgee 

Age: 19
Joined: 17 Jul 2017
Posts: 8
Posted: 2017-07-19, 15:46   

It's weird, the game still crash on start up, but I managed to get a message from the console

"Assertion failed: cre->ammMin, file CCreatureHandler.cpp, line 646"
 
     
misiokles 

Joined: 12 Nov 2015
Posts: 180
Posted: 2017-07-19, 16:28   

So, it's not your mod fault. Please attach following files here: VCMI_Client_log.txt, VCMI_Launcher_log.txt, VCMI_Server_log.txt
 
     
speehgee 

Age: 19
Joined: 17 Jul 2017
Posts: 8
Posted: 2017-07-19, 18:44   

Here you go:

VCMI_Server_log.txt
Download 6 Time(s) 59.57 KB

VCMI_Launcher_log.txt
Download 5 Time(s) 4.94 KB

VCMI_Client_log.txt
Download 4 Time(s) 60.01 KB

 
     
misiokles 

Joined: 12 Nov 2015
Posts: 180
Posted: 2017-07-19, 21:03   

All I can see from the logs that your game crashes when trying to read game original files. So maybe your vcmi instaloation is wrong (you've copied vcmi files in wrong directory but it's not likely) or maybe your Homm3 instalation went wrong and maybe your are using cracked h3 copy.
  
 
     
misiokles 

Joined: 12 Nov 2015
Posts: 180
Posted: 2017-07-19, 21:09   

Or maybe you've tried to update VCMI essential files in launcher. If you did, don't do that. Copy unpacked files once again into your vcmi folder.
 
     
speehgee 

Age: 19
Joined: 17 Jul 2017
Posts: 8
Posted: 2017-07-19, 21:31   

Allright, I think I know now what is the problem, thanks for helping.
 
     
misiokles 

Joined: 12 Nov 2015
Posts: 180
Posted: 2017-07-20, 09:26   

What was the cause of problem then?
 
     
Display posts from previous:   
Reply to topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Add this topic to your bookmarks
Printable version

Jump to:  

Powered by phpBB modified by Przemo © 2003 phpBB Group

Hosting provided by DigitalOcean
Page generated in 0.03 second. SQL queries: 14