| | The "Unnecessary" Files in NCF Packs |  This thread is  pages long:  1 2 · NEXT» | 
 | 
 
| TSoD 
  
    
     Promising
 Famous Hero
 NCF Blacksmith
 
 | 
|  posted September 11, 2008 06:27 PM |  bonus applied by VokialBG on 11 Sep 2008. | Edited by TSoD at 16:02, 15 Oct 2008. |  
 
| The 
 Hi all
  I'm writing here to explain you some tips to finalize an NCF creature. You don't need it (as I said, they are unnecessary file  ) but if you want your creature looks at each details as the game creatures, this subject may inform you  These things are really not necessary for some. This post is not to criticize you but to inform you that your creatures can even more be complete/successful. You can apply its methods, but also not
  It up to you  
 1°) Cameras
 2°) Script files
 3°) Aligning effects
 |  
 | 
 
| TSoD 
  
    
     Promising
 Famous Hero
 NCF Blacksmith
 
 | 
|  posted September 11, 2008 06:29 PM |  | Edited by TSoD at 19:59, 11 Sep 2008. |  
 
| 1°) Cameras Cameras. I'm sure you've already determined that some creatures camera in the info view aren't defined, that you see the creatur far away and that the zoom isn't good.
 There is a hint : creating the Camera file and placing it at the good place
  ALL the camera files MUST be situated in the following foler :
 
 Quote:NCF_YourNCFPack.pak\Cameras\Interface\HireCreatures\
 
 But that's not all. The file itself MUST be named following this model :
 
 Quote:Creature_396.(Camera).xdb
 
 In this example, you see the number 396. Remplace it by your creature number.
 For example, the camera file of the new Medusa by Fauch isn't well-placed (it's only an example !). It remains like that :
 
 
  
 You determined that the zoom isn't good. It means that the camera file isn't well-defined, that it is not edited (left at X = 0; Y = 0; Z = 0), or that it doesn't exist.
 Here, we are in the first case. The file take place in :
 
 
 Quote:NCF_YourNCFPack.pak\Cameras\Interface\CreatureHireScreen\
 
 It's NOT the good folder. That's why you see the wrong camera, the one defined by sfidanza in the NCF__Core.pak. It is because the file don't take the place of the one made by sfidanza.
 Then, if I redo (only for the example, not in reality) the folders tree, I become to this result, in-game :
 
 Click Here
 (I don't take the interface with CTRL+I)
 
 Look, you see ? The camera has changed his view ! It works great
  Summary
 To add a camera, do the following :
 1°) Create this repertory, then put it in your creature pak :
 
 Quote:Cameras\Interface\HireCreatures\
 
 /!\ Pay attention to all the letters ! If one isn't there or is replaced by another (by distraction), it won't work /!\
 2°) Look for the camera file of the game creature you use to realize yours. All the camera files are in :
 
 Quote:data.pak\Cameras\Interface\HireCreatures\
 
 There look for the file itself. Most of the time, it wears the name of the game base not-upgraded creature.
 3°) Extract it where you want, as long as you remember where you put it ^^
 4°) Right click on it->Properties->Read Only : Disable it->Apply->OK.
 Open the file. Type a space then remove it (the space). Save the file (CTRL+S).
 5°) Rename the file. It must be like this : Creature_XXX.(Camera).xdb
 /!\ - "XXX" : Don't write XXX !! Replace XXX by your creature slot. It's a number of 3 figures.
 - Pay attention to all the letters ! If one isn't there or is replaced by another (by distraction), it won't work ! Don't forget the .(Camera) part !/!\
 6°) Put the file in the pak of your creature at :
 
 Quote:Cameras\Interface\HireCreatures\
 
 
 If you followed the instructions, you will see your creature as well as it was one of the game, correctly placed !
 
 
   |  
 | 
 
| SimonaK 
  
    
      Promising
 Supreme Hero
 
 | 
|  posted September 11, 2008 06:34 PM |  |  |  
 
| Bravo! 
 I hope Cameras from NCFs already released will be fixed.
  
 
 |  
 | 
 
| TSoD 
  
    
     Promising
 Famous Hero
 NCF Blacksmith
 
 | 
|  posted September 11, 2008 06:56 PM |  | Edited by TSoD at 19:12, 11 Sep 2008. |  
 
| 2°) Script Names 
 2°) Script Names
 The scripts names are also very important for a creature who is destined to be in scripted scenario maps.
 For example, I would like to create an NCF map. When the hero come in the region001, this script will be triggered :
 
 AddHeroCreature(CREATURE_WISP, 32)
 
 It will add 32 wisps to my hero.
 If I show you this example, it's because more and more NCF creatures begin to have no script file. Then no creature script name. Then no numeral slot. Then no possibility to script events and triggers staging NCF creatures.
 To assign a numeral ID and a Script ID to a NCF creature, do the following :
 
 1°) Create the following folder :
 
 Quote:scripts\
 
 Beware to the letters format (NO capital letters), and to the "s" at the end. It is often this mistakes that are made
  2°) Create a text file (Right Click->New...->Text File)
 3°) Rename it as :
 
 Quote:creature_XXX.xdb
 
 Beware to the letters format (NO capital letters), and to the "s" at the end. It is often this mistakes that are made
  XXX must be replaced by your creature slot (3 figures-number).
 4°) Open the file wth Notepad, then write :
 
 Quote:CREATURE_YOUR_ID = XXX
 
 Replace "YOUR_ID" in green by the scipt name you would like for your creature. It must be in capital letters, no special characters, no spaces.
 Replace "XXX" in green by your creature slot (3 figures-number).
 5°) CTRL+S to save the file. Close it then.
 6°) Put the file in your creature pak in :
 
 Quote:scripts\
 
 
 If you want to use the creature in scripted scenario, you can now refer to your creature by using the ID you entered !
 
 NB : the complete ID contains the "CREATURE_" part.
 For example, the wisp elder has this script file :
 
 Quote:CREATURE_WISP_ELDER = 394
 
 It means that its ID, used in function like AddHeroCreatures(), can be either CREATURE_WISP_ELDER or 394. You arrived to this result in a script :
 either
 
 Quote:AddHeroCreatures(CREATURE_WISP_ELDER, 32)
 
 or
 
 Quote:AddHeroCreatures(394, 32)
 
 (it is the same).
 
 There we are !
 
 
   |  
 | 
 
| TSoD 
  
    
     Promising
 Famous Hero
 NCF Blacksmith
 
 | 
|  posted September 11, 2008 06:58 PM |  |  |  
 
| Quote:Bravo!
 
 I hope Cameras from NCFs already released will be fixed.
  
 
 
 Thx SimonaK
  I hope so, but if they don't want to update their creatures, it's their choice. I don't oblige them, not at all !!! :s It's only a way to improve even a bit more their fabulous creatures
   |  
 | 
 
| Warmonger 
  
    
       Promising
 Legendary Hero
 fallen artist
 
 | 
|  posted September 11, 2008 07:08 PM |  |  |  
 
| Good job, Shadow. I believe you'll score some QPs soon  
 
 Quote:HeroAddCreature(CREATURE_WISP, 32)
 
 AddHeroCreatures it is.
 
 Apart from that, I already used it many times on my currently developed map. Hopefully others will follow.
 |  
 | 
 
| TSoD 
  
    
     Promising
 Famous Hero
 NCF Blacksmith
 
 | 
|  posted September 11, 2008 07:13 PM |  |  |  
 
| Thanks Warmonger  
 Quote:AddHeroCreatures it is.
 
 Fixed
   |  
 | 
 
| VokialBG 
  
      
       Honorable
 Legendary Hero
 First in line
 
 | 
|  posted September 11, 2008 07:24 PM |  | Edited by VokialBG at 19:26, 11 Sep 2008. |  
 
| Very usefull for all NCF modders, also nice "call" for better NCF's with less bugs.  QP for the good work, but don't cancel it  
 Only one small note, please reduce the size of the second image on post 2
  or just link it with text link   ____________
 
 |  
 | 
 
| TSoD 
  
    
     Promising
 Famous Hero
 NCF Blacksmith
 
 | 
|  posted September 11, 2008 07:59 PM |  |  |  
 
| Thanks Vokial  The picture is fixed
   |  
 | 
 
| radar 
  
     
       Responsible
 Legendary Hero
 Castle/Haven player
 
 | 
|  posted September 11, 2008 08:01 PM |  |  |  
 
|  remove or resize the page stretcher 
 
  delete the "ncf based" part from the thread name, I thought it was a new creature 
 
  or just rename it to "hey, Fauch"  
 
 ____________
 
 |  
 | 
 
| SimonaK 
  
    
      Promising
 Supreme Hero
 
 | 
|  posted September 11, 2008 08:10 PM |  |  |  
 
| Quote:
 
  or just rename it to "hey, Fauch"  
 
 
 hehe, I admits it's funny
  
 
 |  
 | 
 
| Fauch 
  
     
        Responsible
 Undefeatable Hero
 
 | 
|  posted September 11, 2008 08:37 PM |  | Edited by Fauch at 20:38, 11 Sep 2008. |  
 
| Quote:Tu dois avoir un fichier du type "Cameras/Interface/CreatureHireScreen/Creature_XXX.(Camera).xdb
 
 
 gni... I did what you told me tsod...
 ok, I'll try the other way.
 |  
 | 
 
| razor5 
  
   
     Famous Hero
 Freezing...
 
 | 
|  posted September 12, 2008 09:25 AM |  |  |  
 
| quote]In this example, you see the number 396. Remplace it by your creature number. For example, the camera file of the new Medusa by Fauch isn't well-placed (it's only an example !). It remains like that :[
 
 
 
 Yes,I hope here Fauch's camera problems should be finished
   |  
 | 
 
| Fauch 
  
     
        Responsible
 Undefeatable Hero
 
 | 
|  posted September 12, 2008 10:20 AM |  | Edited by Fauch at 12:10, 12 Sep 2008. |  
 
| Quote:4°) Right click on it->Properties->Read Only : Disable it->Apply->OK.
 Open the file. Type a space then remove it (the space). Save the file (CTRL+S).
 
 
 how did you guess that?
  it's the only thing I didn't do. (on most of my creatures)
 
 do textual IDs work in the console?
 |  
 | 
 
| Daystar 
  
      
       Honorable
 Legendary Hero
 Back from the Dead
 
 | 
|  posted September 12, 2008 12:50 PM |  |  |  
 
| MEDUSA?  When did I miss someone making a MEDUSA!??!??! ____________
 How exactly is luck a skill?
 |  
 | 
 
| Fauch 
  
     
        Responsible
 Undefeatable Hero
 
 | 
|  posted September 12, 2008 01:23 PM |  |  |  
 
| some cameras work fine with official creatures, but not with mines? or maybe I have to guess things such as the black dragon camera is used for the brawler??
 |  
 | 
 
| TSoD 
  
    
     Promising
 Famous Hero
 NCF Blacksmith
 
 | 
|  posted September 12, 2008 06:17 PM |  |  |  
 
| No Fauch  I determined that your creatures cameras files are in Read Only state. I think it is this that bug the camera file.
 Disable read only, then modifiy the file (like adding a space). Remove this space, then save. So your camera file will have a refreshed date (like 12/09/2008 for example) and a refreshed time.
 In fact, when there is multiple files that have the same name (like the camera files, one in the NCF__Core.pak and one in your pak), the game will have to choice one of the two files. It will ALWAYS choose the most recent of them.
 It's why you must disable read-noly state, and modify the file to change the date.
 Example :
 Creature_396.(Camera).xdb in NCF__Core.pak was saved the 21/01/2008. If you only copy then rename a original game camera file (coming from data.pak\Cameras\...), the date will not change at all ! Then the game will ignore this file, and take Sfidanza's one
  It as simple as that
  I hope you understand
  I you don't, come on AC, I will explain in french   |  
 | 
 
| SimonaK 
  
    
      Promising
 Supreme Hero
 
 | 
|  posted September 12, 2008 06:33 PM |  |  |  
 
| Even in Spanish I think I will understand.    
 
 
 |  
 | 
 
| TSoD 
  
    
     Promising
 Famous Hero
 NCF Blacksmith
 
 | 
|  posted October 15, 2008 04:01 PM |  |  |  
 
| 3°) Easier to align Effects 
 3°) Easier to align Effects
 Holy snow ! I never remember if I must add/substract in X, Y or Z to align my effect on the right place ! And I want to rotate my effect ! Wich of these must I change ?! Raaaaaah ! °@$£*%§ !
 
 Have you ever been in this situation ? I often. There it is : the picture that saves you !
 
 
  
 Pay attention ! the arrows X, Y, Z are only working if you view your creature from FRONT ! Not from behind, not from another side. From FRONT. (I wrote 'Face' because in french Front ~= Face)
 
 Then , If you want to move your effect that is front your creature to behind your creature, you need to add some Y. (Example : <y>0,2</y>
  . But you want to place it behind the head, and it is behind the legs ! You need to add some Z (Example : <z>1</z>  . And, you want to center your effect (it is too on the right). Substract some X (Example : <x>-0,05</x>  
 Pay attention again ! The unit ("1") of Heroes V 3D Models is a bit tall. "1" equals the half of the Colossus, since it's feet. A value of '35' will be then out of sight
  "1" equals one segment of the Editor grid too.
 
 To rotate your effect correctly, you need to know around which axe you want to rotate it. To be clear, another picture :
 
 
  
 You rotate AROUND an axe, not ON the disk it belongs !!!
 The unit of the rotations are the radians (Welcome, Mathematics !), I believe.
 All I now is that 0,75 ~= 90° (less or more)
 
 Have a good afternoon !
  I hope it will help you !
 ____________
 NCFBank,
 the complete and homogen NCF
 library.
 |  
 | 
 
| Asheera 
  
      
        Honorable
 Undefeatable Hero
 Elite Assassin
 
 | 
|  posted October 15, 2008 04:05 PM |  |  |  
 
| To convert degrees to radians simply multiply your degrees with PI/180 (0.017453) ____________
 
 |  
 | 
|  |