Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > Real Warfare 2: Northern Crusades

Real Warfare 2: Northern Crusades A new chapter in the Real Warfare realistic real-time strategy games series.

Reply
 
Thread Tools Display Modes
  #1  
Old 11-22-2011, 03:13 PM
Goblin Wizard Goblin Wizard is offline
Approved Member
 
Join Date: Oct 2008
Posts: 508
Default

Quote:
Originally Posted by mitra View Post
Yes are all things in the game routines; have a little of patience, I will take a look to interpreted code for a short description of algorithm; if you know a little of script or programming languages I can explain you how to see them yourself
I know a little about programming. Let me know where I should look for. If I have any problems I ask again.

Quote:
Originally Posted by mitra View Post
Well about the AI I read on various forum and reviewers and from my italian friend which take the game the opposite judgement (the played to TW also). I suppose is a matter of gaming experiences and perceptions of various players
I don't want to argue with you so I'll give you an example from one of my latest battles:
AI took defensive positions and stood still. I set my units in line in front of AI's line. AI didn't want to attack first so I sent one of my archers on the enemy flank and started to shoot. 1st unit was reduced by more than 50%...2nd unit was reduced by more than 50%.. when the 3rd unit was close to 50% of loses AI started to react but it was far too late. My archers were firing from the short range and from the flank so they killed more than 250 enemy soldiers without loosing even one man. AI had archers too but from the unknown reasons decided not to shoot or react in any other way. How would you call that type of behavior?

Additional question: Does the number of rows in archers unit has any influence on the shooting efficiency (accuracy, damage)?
Reply With Quote
  #2  
Old 11-22-2011, 06:15 PM
mitra mitra is offline
Approved Member
 
Join Date: Mar 2008
Location: Milano
Posts: 668
Default

Quote:
Originally Posted by Goblin Wizard View Post
I know a little about programming. Let me know where I should look for. If I have any problems I ask again.
1 - open editor.exe
2 - from the menu of editor select "editor script->states machines"
3 - you will see a list of aix files and a button edit
4 - every aix files contains the battle mechanics and the AI routines: example
west europe global.aix contains AI routines, west europe group.aix the routine for group factors in battle, all the others manage routines of single soldiers or objects (open one of them with edit).
5 each aix contains different states which are a logical block of code (something similar to a class), the states are called in a logical sequence starting from a the state main. THe state have names sufficient speaking for understand what they do, wihtout reading all the before.

Quote:
Originally Posted by Goblin Wizard View Post
I don't want to argue with you so I'll give you an example from one of my latest battles:
AI took defensive positions and stood still. I set my units in line in front of AI's line. AI didn't want to attack first so I sent one of my archers on the enemy flank and started to shoot. 1st unit was reduced by more than 50%...2nd unit was reduced by more than 50%.. when the 3rd unit was close to 50% of loses AI started to react but it was far too late. My archers were firing from the short range and from the flank so they killed more than 250 enemy soldiers without loosing even one man. AI had archers too but from the unknown reasons decided not to shoot or react in any other way. How would you call that type of behavior?
This is the behaviour of peasants armies, the ai in game has three behaviour preset, defensive, aggressive, free (you can set it manually in custom battle). Depending from the situation or army type on the campaign map you has different behaviour. Anyway if you read the scripts you will see how logic the AI apply in reaction to situations.
Reply With Quote
  #3  
Old 11-22-2011, 06:33 PM
Goblin Wizard Goblin Wizard is offline
Approved Member
 
Join Date: Oct 2008
Posts: 508
Default

Thanks a lot! Could you tell me one more thing - where (in editor) I can find units' stats, equipment, development trees, etc.?

btw Are all your youtube videos and pdf guides for RW1242 applicable for RW2:NC too?
Reply With Quote
  #4  
Old 11-22-2011, 07:24 PM
mitra mitra is offline
Approved Member
 
Join Date: Mar 2008
Location: Milano
Posts: 668
Default

Quote:
Originally Posted by Goblin Wizard View Post
Thanks a lot! Could you tell me one more thing - where (in editor) I can find units' stats, equipment, development trees, etc.?
In the initial state of various aix is where the fixed constans are set for units or soldier. Make attention they are not absolute but are influenced by other fixed values or external variable values. Example from the state you will see the great axe used by western axemen and by russian elite axemen is the same, what make difference is the different ability with the primary weapon. You will see troops with shield bonus but shield bonus is applied only if the direction of hit comes from a direction where shield can intercept it. etc
The development trees must be part of one of interface .aix (that which manages the GUI and the menus) but is new, still I don't have found it. Perhaps is read by the AIX state using a text file.

Quote:
Originally Posted by Goblin Wizard View Post
btw Are all your youtube videos and pdf guides for RW1242 applicable for RW2:NC too?
For tactical battle yes

Last edited by mitra; 11-22-2011 at 07:26 PM.
Reply With Quote
  #5  
Old 11-22-2011, 08:32 PM
ThisIsRealWarfare ThisIsRealWarfare is offline
Approved Member
 
Join Date: Nov 2011
Posts: 113
Default

Quote:
Originally Posted by mitra View Post
In the initial state of various aix is where the fixed constans are set for units or soldier. Make attention they are not absolute but are influenced by other fixed values or external variable values. Example from the state you will see the great axe used by western axemen and by russian elite axemen is the same, what make difference is the different ability with the primary weapon. You will see troops with shield bonus but shield bonus is applied only if the direction of hit comes from a direction where shield can intercept it. etc
The development trees must be part of one of interface .aix (that which manages the GUI and the menus) but is new, still I don't have found it. Perhaps is read by the AIX state using a text file.



For tactical battle yes
That is very interesting. *Excited*
Now Im wondering, any idea how to change so camera will strafe in 2 directions simultaneously? (Compare to Total War Series). What I mean is, Strafing for example down and left = moving the camera "southeast", if you get what I mean. I'd so much appreciate if anyone knows how to do that
Reply With Quote
  #6  
Old 11-22-2011, 09:13 PM
mitra mitra is offline
Approved Member
 
Join Date: Mar 2008
Location: Milano
Posts: 668
Default

Quote:
Originally Posted by ThisIsRealWarfare View Post
That is very interesting. *Excited*
Now Im wondering, any idea how to change so camera will strafe in 2 directions simultaneously? (Compare to Total War Series). What I mean is, Strafing for example down and left = moving the camera "southeast", if you get what I mean. I'd so much appreciate if anyone knows how to do that
Camera movement is controlled by scripts, I think is one or more states in gui.aix which contains the states related to battle GUI. A modder can add new movements from here
Reply With Quote
  #7  
Old 11-23-2011, 06:42 AM
ThisIsRealWarfare ThisIsRealWarfare is offline
Approved Member
 
Join Date: Nov 2011
Posts: 113
Default

Wow, thanks. I just found it under "Advanced" in the editor. Can a completely-new-to-this person like me do that? Or will it require someone with more experience?
Reply With Quote
  #8  
Old 11-23-2011, 12:12 PM
Goblin Wizard Goblin Wizard is offline
Approved Member
 
Join Date: Oct 2008
Posts: 508
Default

Quote:
Originally Posted by mitra View Post
Example from the state you will see the great axe used by western axemen and by russian elite axemen is the same, what make difference is the different ability with the primary weapon.
Could you explain "the different ability with the primary weapon"? Any examples of these abilities?

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
This part looks ok but a few lines below we can see something like this:
Code:
var armorKoef : Integer = 1;
[*] = ;      case selectedUnitArmor of
[*] = ;         0 : armorKoef := 1;
[*] = ;         1 : armorKoef := 1;
[*] = ;         2 : armorKoef := 10;
[*] = ;         3 : armorKoef := 10;
[*] = ;      end;
[*] = ;      selectedPrice := selectedPrice * armorKoef;
I'm curious why units with armor >1 cost 10 times more to reinforce? Maybe it works under different circumstances?

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 12:16 PM.
Reply With Quote
  #9  
Old 11-23-2011, 01:20 PM
ThisIsRealWarfare ThisIsRealWarfare is offline
Approved Member
 
Join Date: Nov 2011
Posts: 113
Default

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
Reply With Quote
  #10  
Old 11-23-2011, 04:33 PM
mitra mitra is offline
Approved Member
 
Join Date: Mar 2008
Location: Milano
Posts: 668
Default

Quote:
Originally Posted by ThisIsRealWarfare View Post
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
You know how to use a debug tool?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:07 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.