Page 2 of 2

Re: Addìng 2 new units.

Posted: Sun Oct 15, 2017 15:34 pm
by MrMorgana
MrTroodon: please, write here what you have in class txt currently
also to fix the bugged icon, you have to replace current icon at objects branch in techtree, not just at actions

Re: Addìng 2 new units.

Posted: Sun Oct 15, 2017 18:09 pm
by MrTroodon
In classes i have this hu_giganotosaurus {
classattribs {
classname = 'CAnimal'
gfx = 'Gigantosaurus'
}
objectattribs {
tribe = 'Hu'
}
}
hu_giganotosaurus_food {
classattribs {
classname = 'CDino_Food'
gfx = 'Gigantosaurus'
}
objectattribs {
tribe = 'Hu'
Also it uses the seas giga icon and description and finally i tried the cheat and it does spawn the unit.

Re: Addìng 2 new units.

Posted: Sun Oct 15, 2017 18:31 pm
by MrMorgana
cool, then what are the problems to be fixed?

Re: Addìng 2 new units.

Posted: Sun Oct 15, 2017 18:55 pm
by MrTroodon
https://prnt.sc/gw4ys4 as you can see the icon is bugged but not only that, the giga dosnt spawn once I start the game, I also cant get it to work in the farm.For example it just wont appear on the fram menu even if i change the menupos.

Re: Addìng 2 new units.

Posted: Mon Oct 16, 2017 5:48 am
by MrMorgana
okay, what is the code of giga at objects branch, like for kentrosaurus it is: description = '_hu_kentrosaurus'
because this is what defines what you see in pointbuy menu

Re: Addìng 2 new units.

Posted: Mon Oct 16, 2017 8:29 am
by Scrat
does the unit walk, talk, attack and follow any command once you spawn it?

Re: Addìng 2 new units.

Posted: Mon Oct 16, 2017 15:46 pm
by MrTroodon
Yup it works perfectly when i spawn it and ya the description is perfectly fine. I have the feeling that is one of those case when you just did a rlly dumb error.

Re: Addìng 2 new units.

Posted: Mon Oct 16, 2017 18:55 pm
by AnthonyCole
How about you post the relevant sections of your techtree here?

Re: Addìng 2 new units.

Posted: Mon Oct 16, 2017 23:57 pm
by MrTroodon
Hmm good idea.
hu_giganotosaurus {
code = 'hu_giganotosaurus_Build_Hu'
duration = '35'
visibility = '-5'
secondarycontroller = '0'
personal = '1'
supply = 'hu_giganotosaurus '
locations {
0 = '/Objects/Hu/BLDG/hu_small_animal_farm' {
description = '_hu_giganotosaurus'
iconpath = 'seas_gigantosaurus'
uiposition {
cat = 'PROD'
menupos = '12'
subcat = 'ENTY'
}
}
}
results {
0 =
'/Objects/Hu/ANML/hu_giganotosaurus ' {
class = 'player'
type = 'activate'
flags {
level = '3'
}
}
}
conditions {
tribe {
0 = 'Hu'
}
inventobjects {
0 = 'age_4'
}
rescosts {
units = '0'
food = '600'
wood = '150'
stone = '150'
iron = '0'

hu_giganotosaurus {
description = '_seas_gigantosaurus'
gfx = 'Gigantosaurus'
research = '4'
aggressive = '1'
hitpoints = '2700.000000'
FOW = '45.000000'
defaultspeed = '3'
maxspeed = '3'
captainlevel = '3'
captaincaste = 'nat'
scalps = '30'
unit_size = '10'
ai_cap = '5'
timefactor = '0.500000'
captainclass = 'hu_rider_d'
standanim = 'ride_idle_0'
carnivore = '1'
fx_class = 'Unit'
melee_penetrate = '1'
jaw_size = '120.000000'
fx_class = 'Unit'
FinishingClass = 'Gigantosaurus'
reanim_time = '40.0'
spirit_life = '150.0'
soul_form = 'fx_ghost_med'
ascension = '0.20'

Re: Addìng 2 new units.

Posted: Mon Oct 16, 2017 23:58 pm
by MrTroodon
hu_giganotosaurus_weapon_a {
defense = '30'
damage = '30'
hitrange = '0.000000'
enddamage = '0'
frequency = '37'
range = '1.000000'
Users {
0 = 'hu_giganotosaurus'
1 = 'Gigantosaurus'
}
Animations {
0 = 'attack_front' {
delay = '0.700000'
shootdelay = '0.000000'
projectile_on = '0.000000'
}
1 = 'attack_1' {
delay = '0.700000'
shootdelay = '0.000000'
projectile_on = '0.000000'
}
2 = 'attack_2' {
delay = '0.700000'
shootdelay = '0.000000'
projectile_on = '0.000000'
}
}
level = '1'
minattackrange = '0.000000'
unit_size = '10'
bulletspeed = '0.000000'
bulletfalloff = '0.000000'
shootdelay = '0'
jitter = '0.000000'
penetration = '1'
penetration_factor = '100.000000'
rangeddefense = '30'
poison_damage = '0.000000'
poison_tick_count = '0'
fire_damage = '0.000000'
fire_tick_count = '0'
airweapon = '0'
armorpiercing = '0'
fx_class = 'Claw'
penetration_angle = '100.000000'
}
hu_giganotosaurus_weapon_b {
defense = '30'
damage = '40'
hitrange = '0.000000'
enddamage = '0'
frequency = '37'
range = '1.000000'
Users {
0 = 'hu_giganotosaurus'
1 = 'Gigantosaurus'
}
Animations {
0 = 'attack_front' {
delay = '0.700000'
shootdelay = '0.000000'
projectile_on = '0.000000'
}
1 = 'attack_1' {
delay = '0.700000'
shootdelay = '0.000000'
projectile_on = '0.000000'
}
2 = 'attack_2' {
delay = '0.700000'
shootdelay = '0.000000'
projectile_on = '0.000000'
}
}
level = '2'
minattackrange = '0.000000'
unit_size = '10'
bulletspeed = '0.000000'
bulletfalloff = '0.000000'
shootdelay = '0'
jitter = '0.000000'
penetration = '1'
penetration_factor = '100.000000'
rangeddefense = '30'
poison_damage = '0.000000'
poison_tick_count = '0'
fire_damage = '0.000000'
fire_tick_count = '0'
airweapon = '0'
armorpiercing = '0'
fx_class = 'Claw'
penetration_angle = '100.000000'
}
hu_giganotosaurus_weapon_c {
defense = '30'
damage = '50'
hitrange = '0.000000'
enddamage = '0'
frequency = '37'
range = '1.000000'
Users {
0 = 'hu_giganotosaurus'
1 = 'Gigantosaurus'
}
Animations {
0 = 'attack_front' {
delay = '0.700000'
shootdelay = '0.000000'
projectile_on = '0.000000'
}
1 = 'attack_1' {
delay = '0.700000'
shootdelay = '0.000000'
projectile_on = '0.000000'
}
2 = 'attack_2' {
delay = '0.700000'
shootdelay = '0.000000'
projectile_on = '0.000000'
}
}
level = '3'
minattackrange = '0.000000'
unit_size = '10'
bulletspeed = '0.000000'
bulletfalloff = '0.000000'
shootdelay = '0'
jitter = '0.000000'
penetration = '1'
penetration_factor = '100.000000'
rangeddefense = '30'
poison_damage = '0.000000'
poison_tick_count = '0'
fire_damage = '0.000000'
fire_tick_count = '0'
airweapon = '0'
armorpiercing = '0'
fx_class = 'Claw'
penetration_angle = '100.000000'
}
hu_giganotosaurus_weapon_d {
defense = '30'
damage = '70'
hitrange = '0.000000'
enddamage = '0'
frequency = '37'
range = '1.000000'
Users {
0 = 'hu_giganotosaurus'
1 = 'Gigantosaurus'
}
Animations {
0 = 'attack_front' {
delay = '0.700000'
shootdelay = '0.000000'
projectile_on = '0.000000'
}
1 = 'attack_1' {
delay = '0.700000'
shootdelay = '0.000000'
projectile_on = '0.000000'
}
2 = 'attack_2' {
delay = '0.700000'
shootdelay = '0.000000'
projectile_on = '0.000000'
}
}
level = '4'
minattackrange = '0.000000'
unit_size = '10'
bulletspeed = '0.000000'
bulletfalloff = '0.000000'
shootdelay = '0'
jitter = '0.000000'
penetration = '1'
penetration_factor = '100.000000'
rangeddefense = '30'
poison_damage = '0.000000'
poison_tick_count = '0'
fire_damage = '0.000000'
fire_tick_count = '0'
airweapon = '0'
armorpiercing = '0'
fx_class = 'Claw'
penetration_angle = '100.000000'
}
hu_giganotosaurus_weapon_e {
defense = '30'
damage = '110'
hitrange = '0.000000'
enddamage = '0'
frequency = '37'
range = '1.000000'
Users {
0 = 'hu_giganotosaurus'
1 = 'Gigantosaurus'
}
Animations {
0 = 'attack_front' {
delay = '0.700000'
shootdelay = '0.000000'
projectile_on = '0.000000'
}
1 = 'attack_1' {
delay = '0.700000'
shootdelay = '0.000000'
projectile_on = '0.000000'
}
2 = 'attack_2' {
delay = '0.700000'
shootdelay = '0.000000'
projectile_on = '0.000000'
}
}
level = '5'
minattackrange = '0.000000'
unit_size = '10'
bulletspeed = '0.000000'
bulletfalloff = '0.000000'
shootdelay = '0'
jitter = '0.000000'
penetration = '1'
penetration_factor = '100.000000'
rangeddefense = '30'
poison_damage = '0.000000'
poison_tick_count = '0'
fire_damage = '0.000000'
fire_tick_count = '0'
airweapon = '0'
armorpiercing = '0'
fx_class = 'Claw'
penetration_angle = '100.000000'

hu_giganotosaurus {
Lvl2_Bonus {
priority = '1000'
Modificators {
3_Add_hitpoints {
op = 'add'
path = '/Objects/Hu/ANML/hu_giganotosaurus/hitpoints'
value = '100'
}
10_Add_scalps {
op = 'add'
path = '/Objects/Hu/ANML/hu_giganotosaurus/scalps'
value = '5'
}
12_Add_unit_size {
op = 'add'
path = '/Objects/Hu/CHTR/hu_gigantosaurus/unit_size'
value = '1'
}
}
}
Lvl3_Bonus {
priority = '1000'
Modificators {
3_Add_hitpoints {
op = 'add'
path = '/Objects/Hu/ANML/hu_giganotosaurus/hitpoints'
value = '300'
}
10_Add_scalps {
op = 'add'
path = '/Objects/Hu/ANML/hu_giganotosaurus/scalps'
value = '15'
}
12_Add_unit_size {
op = 'add'
path = '/Objects/Hu/CHTR/hu_gigantosaurus/unit_size'
value = '2'
}
}
}
Lvl4_Bonus {
priority = '1000'
Modificators {
3_Add_hitpoints {
op = 'add'
path = '/Objects/Hu/ANML/hu_giganotosaurus/hitpoints'
value = '600'
}
10_Add_scalps {
op = 'add'
path = '/Objects/Hu/ANML/hu_giganotosaurus/scalps'
value = '25'
}
12_Add_unit_size {
op = 'add'
path = '/Objects/Hu/CHTR/hu_gigantosaurus/unit_size'
value = '3'
}
}
}
Lvl5_Bonus {
priority = '1000'
Modificators {
3_Add_hitpoints {
op = 'add'
path = '/Objects/Hu/ANML/hu_giganotosaurus/hitpoints'
value = '1100'
}
10_Add_scalps {
op = 'add'
path = '/Objects/Hu/ANML/hu_giganotosaurus/scalps'
value = '45'
}
12_Add_unit_size {
op = 'add'
path = '/Objects/Hu/CHTR/hu_gigantosaurus/unit_size'
value = '4'

Re: Addìng 2 new units.

Posted: Mon Oct 16, 2017 23:59 pm
by MrTroodon
mod_vis_build_giganotosaurus = '1' {
op = 'add'
path = '/Actions/Hu/Build/ANML/hu_giganotosaurus/visibility'
value = '1'

mod_vis_build_giganotosaurus = '1' {
op = 'add'
path = '/Actions/Hu/Build/ANML/hu_giganotosaurus/visibility'
value = '1'

action_mod_hu_giganotosaurus_food = '1' {
op = 'multiply'
path = '/Actions/Hu/Build/ANML/hu_giganotosaurus_rider/conditions/rescosts/food'
value = '0.7'
}
action_mod_hu_giganotosaurus_wood = '1' {
op = 'multiply'
path = '/Actions/Hu/Build/ANML/hu_giganotosaurus_rider/conditions/rescosts/wood'
value = '0.7'
}
action_mod_hu_giganotosaurus_stone = '1' {
op = 'multiply'
path = '/Actions/Hu/Build/ANML/hu_giganotosaurus_rider/conditions/rescosts/stone'
value = '0.7'
}
action_mod_hu_giganotosaurus_iron = '1' {
op = 'multiply'
path = '/Actions/Hu/Build/ANML/hu_giganotosaurus_rider/conditions/rescosts/iron'
value = '0.7'

Re: Addìng 2 new units.

Posted: Mon Oct 16, 2017 23:59 pm
by MrTroodon
hu_giganotosaurus {
priority = '10000'
Modificators {
DisableAction {
op = 'invisible'
path = '/Actions/Hu/Build/ANML/hu_giganotosaurus'

Re: Addìng 2 new units.

Posted: Tue Oct 17, 2017 5:21 am
by MrMorgana
okay, set visibility = '-5' to -1, so that the action will become visible with big farm and epoch upgrade

Re: Addìng 2 new units.

Posted: Tue Oct 17, 2017 8:05 am
by Scrat
I think you posted the wrong entry. Post the entry of the new giga unit you created, not the old one you disabled (I told you to disable the old unit by setting the visibility to -5, the old unit is supposed to be invisible. Post the new unit).

Re: Addìng 2 new units.

Posted: Tue Oct 17, 2017 16:27 pm
by MrTroodon
K the new unit its the same thing but with visibility -1(i forgot to change it xD)
Edit:Now the game freeze when i try to build the giga on the farm.

Re: Addìng 2 new units.

Posted: Thu Oct 19, 2017 5:59 am
by Scrat
freeze.. you mean like a server crash or does the screen actually freeze and you can't do anything, not even click any unit or hear their sounds..?

Re: Addìng 2 new units.

Posted: Thu Oct 19, 2017 17:30 pm
by MrTroodon
Well in the farm once i click on the unit when it ends creating it the game just freeze, this is weird mainly because the unit its functional when i spawn it with cheats.

Re: Addìng 2 new units.

Posted: Thu Oct 19, 2017 18:32 pm
by MrMorgana
you should come to discord or tavern and let me help you via teamviewer

Re: Addìng 2 new units.

Posted: Thu Oct 19, 2017 21:56 pm
by MrTroodon
Thats actually a good idea XD!!!! I will see when i have some free time.