Skip to content

Cubemain.txt File Guide

Posted by Phrozen Heart · 2 December 2003

Credits: by Nefarius

File guides (1.09)

Column A: description 
This column has no function, it only serves as a comment field to make it easier to find specific recipes. 

Column B: enabled 
Boolean, this controls if a recipe is active in-game, 1 stands for yes and 0 stands for no. 

Column C: min diff 
Controls at since which difficulty level this recipe can be used, 0=normal, 1=nightmare and 2=hell. 

Column D: version 
Tells the game if this is a old classic, new classic or expansion recipe, 0=old classic d2, 1=new classic d2 and 100 is expansion recipe. (*I am not sure if 1 is used in this file, but this column works the same way it works in all the other item related files so it probably does.) 

Column E: start day 
Used for closed battle.net to enable some recipes at a specific range of days. 
Its pretty useless, but it can be used for other things with a bit of code editing. 

Column F: stop day 
Used for closed battle.net to disable some recipes at a specific range of days. 
Its pretty useless, but it can be used for other things with a bit of code editing. 

Column G: weekday 
Used for closed battle.net to enable some recipes at a specific weekday. 
Its pretty useless, but it can be used for other things with a bit of code editing. 

Column H: class 
You can use this to make a recipe class specific by using the class codes, aka ama, bar, pal, nec, sor, dru and ass. 

Column I: numinputs 
Controls the number of items you need to put into the cube for this recipe, please note that if your using the “qty” switch in your input this number must be adjusted, so hpot,qty=5 would mean you must set numinputs to 5 ratter then 1, this is a very common mistake. The gty switch may cause problems if you use items with quantity values 

Column J-P: input 1-7 
This controls the type of inputs used for the recipe, each cell stands for a different item. 
Please refer to my Cubemain Code Reference in the keeps resource section in order to read about these codes. 

Column Q: output 
Controls the output and its quality, please refer to my Cubemain Code Reference in the keeps resource section to read about these codes. 

Column R: lvl 
Controls the level of the item that is created in output, note this value force spawns the item at this specific level. Its also used in the formula for the two lower columns. 

Column S: plvl 
This column uses a portion of the players level for the output level. 

Column T: ilvl 
This column uses a portion of the first inputs level for the output level. 

Column U, Z, AE, AJ, AO: mod 1-5 
This controls modifiers that get appended to the output, aka you can create normal items such as cracked sashes with modifiers such as lifesteal on them this way, its mainly used for crafted items tought, for a list of modifiers please consult the magic code master list. 

Column V, AA, AF, AK, AP: mod 1-5 chance 
This controls the chance for modifier 1-5 to spawn on the output, lets say you have modifier 1 set to lifesteal, if you want it to only produce a item with lifesteal half of the time you would set mod 1 chance to 50, which is 50%. 

Column W, AB, AG, AL, AQ: mod 1-5 param 
Parameter for modifier 1-5, refer to the magic code master list in order to see which modifiers use a parameter and how it is used. 

Column X, AC, AH, AM, AR: mod 1-5 min 
Controls the minimum values for modifier 1-5, refer to the magic code master list to see which modifiers use a minimum value and what you should enter into it. 

Column Y, AD, AI, AN, AS: mod 1-5 max 
Controls the maximum values for modifier 1-5, refer to the magic code master list to see which modifiers use a maximum value and what you should enter into it. 

Column AT: term 
Record Terminator column, this has no function other then terminating the lines, this is used to prevent tailing byte crashes when the BIN files are loaded/generated by the game.