|
Real Warfare 2: Northern Crusades A new chapter in the Real Warfare realistic real-time strategy games series. |
|
Thread Tools | Display Modes |
#11
|
|||
|
|||
Quote:
Another thing - how the reinforcements cost is scaled (..\data\gui\map.gui.aix) Code:
var restorePrice : Integer; [*] = ; if selectedCommander > 0 then [*] = ; restorePrice := floor(100*selectedUnitsCountByTemplate*(1+1.5*selectedIntSize)) //restore of first humans squad cost less [*] = ; else [*] = ; begin [*] = ; var armorKoef : Integer = 2; [*] = ; case selectedUnitArmor of [*] = ; 0 : armorKoef := 2; [*] = ; 1 : armorKoef := 4; [*] = ; 2 : armorKoef := 8; [*] = ; 3 : armorKoef := 12; [*] = ; end; [*] = ; restorePrice := selectedPrice * armorKoef; [*] = ; end Code:
var armorKoef : Integer = 1; [*] = ; case selectedUnitArmor of [*] = ; 0 : armorKoef := 1; [*] = ; 1 : armorKoef := 1; [*] = ; 2 : armorKoef := 10; [*] = ; 3 : armorKoef := 10; [*] = ; end; [*] = ; selectedPrice := selectedPrice * armorKoef; Units with shields on the back. When does such a unit use shield or when the shield works? Last edited by Goblin Wizard; 11-23-2011 at 01:16 PM. |
#12
|
|||
|
|||
I am still struggling with how to change the strafing. What I find is alots of variables and stuff. Does anybody have any idea where to adjust it? (As said before, I want to change so that you can strafe in 2 directions simultaneously - for example Up and Right = would be "Northeast"). I am so curious, and I cant wait for an answer
|
#13
|
|||
|
|||
Quote:
Quote:
I see you start soon to play with the code Quote:
|
#14
|
|||
|
|||
Quote:
|
#15
|
|||
|
|||
Hmm no I dont think so :O
Whats it used for? |
#16
|
|||
|
|||
for see in execution the flow of source code
Here a video for see how use the debug in the editor (the editor is that of 1242, so the menu are not placed at the same mode); works great for understood how work the code; you place the breakpoint in the state where there is the code you want and you can see the actions and values line for line Last edited by mitra; 11-23-2011 at 06:42 PM. |
#17
|
|||
|
|||
The video shows something called Script Debugger. How to run it? Does it start automatically when something is wrong?
I assume that lines in red are excluded from execution right? Last edited by Goblin Wizard; 11-23-2011 at 06:58 PM. |
#18
|
|||
|
|||
No you place a breakpoint and the flag activate debugger in the script editor. after you run the game from the editor (menu file->test map; press esc -> select "go to main menu" and execute one of game functions) when the game running pass from one of your break-point the window open alone.
|
#19
|
|||
|
|||
Nice video, even though it was a bit hard to understand everything. Basically, Im wondering (as mentioned before) about how to fix strafing, if you know Mitra?
I also wonder how to change unit sizes, and how to add new units to the recruitment tree? Does it aswell work to change for example the speed of arrows when they are in the air? |
#20
|
|||
|
|||
This is very interesting topic.. I have also take a look on the code, and its look as ... interestingly complex system
I have heard an opinion (interview with Shogun 2 TW programmer) that AI programming is one of the most complicated and challenging software areas.. Do you have something similar to Class Diagram of the code? The graph showing how the Classes and their objects are connected and related to each other, which methods they have etc.. this would ease the process of familiarising with the code? Best Regards, |
|
|