Addìng 2 new units.

User avatar
MrMorgana
- Admin -
Posts: 783
Joined: Tue Aug 18, 2009 13:42 pm
Location: Koprulu Sector

Re: Addìng 2 new units.

Post by MrMorgana » Sun Oct 15, 2017 16:34 pm

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

MrTroodon
Posts: 39
Joined: Sun Feb 21, 2016 2:50 am

Re: Addìng 2 new units.

Post by MrTroodon » Sun Oct 15, 2017 19:09 pm

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.

User avatar
MrMorgana
- Admin -
Posts: 783
Joined: Tue Aug 18, 2009 13:42 pm
Location: Koprulu Sector

Re: Addìng 2 new units.

Post by MrMorgana » Sun Oct 15, 2017 19:31 pm

cool, then what are the problems to be fixed?

MrTroodon
Posts: 39
Joined: Sun Feb 21, 2016 2:50 am

Re: Addìng 2 new units.

Post by MrTroodon » Sun Oct 15, 2017 19:55 pm

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.

User avatar
MrMorgana
- Admin -
Posts: 783
Joined: Tue Aug 18, 2009 13:42 pm
Location: Koprulu Sector

Re: Addìng 2 new units.

Post by MrMorgana » Mon Oct 16, 2017 6:48 am

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

User avatar
Scrat
- Mod -
Posts: 14062
Joined: Sat Jul 14, 2007 15:44 pm
Location: Seldwyla
Contact:

Re: Addìng 2 new units.

Post by Scrat » Mon Oct 16, 2017 9:29 am

does the unit walk, talk, attack and follow any command once you spawn it?

MrTroodon
Posts: 39
Joined: Sun Feb 21, 2016 2:50 am

Re: Addìng 2 new units.

Post by MrTroodon » Mon Oct 16, 2017 16:46 pm

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.

User avatar
AnthonyCole
- Admin -
Posts: 2001
Joined: Sat Apr 18, 2009 14:17 pm

Re: Addìng 2 new units.

Post by AnthonyCole » Mon Oct 16, 2017 19:55 pm

How about you post the relevant sections of your techtree here?

MrTroodon
Posts: 39
Joined: Sun Feb 21, 2016 2:50 am

Re: Addìng 2 new units.

Post by MrTroodon » Tue Oct 17, 2017 0:57 am

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'

MrTroodon
Posts: 39
Joined: Sun Feb 21, 2016 2:50 am

Re: Addìng 2 new units.

Post by MrTroodon » Tue Oct 17, 2017 0:58 am

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'

MrTroodon
Posts: 39
Joined: Sun Feb 21, 2016 2:50 am

Re: Addìng 2 new units.

Post by MrTroodon » Tue Oct 17, 2017 0:59 am

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'

MrTroodon
Posts: 39
Joined: Sun Feb 21, 2016 2:50 am

Re: Addìng 2 new units.

Post by MrTroodon » Tue Oct 17, 2017 0:59 am

hu_giganotosaurus {
priority = '10000'
Modificators {
DisableAction {
op = 'invisible'
path = '/Actions/Hu/Build/ANML/hu_giganotosaurus'

User avatar
MrMorgana
- Admin -
Posts: 783
Joined: Tue Aug 18, 2009 13:42 pm
Location: Koprulu Sector

Re: Addìng 2 new units.

Post by MrMorgana » Tue Oct 17, 2017 6:21 am

okay, set visibility = '-5' to -1, so that the action will become visible with big farm and epoch upgrade

User avatar
Scrat
- Mod -
Posts: 14062
Joined: Sat Jul 14, 2007 15:44 pm
Location: Seldwyla
Contact:

Re: Addìng 2 new units.

Post by Scrat » Tue Oct 17, 2017 9:05 am

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).

MrTroodon
Posts: 39
Joined: Sun Feb 21, 2016 2:50 am

Re: Addìng 2 new units.

Post by MrTroodon » Tue Oct 17, 2017 17:27 pm

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.

User avatar
Scrat
- Mod -
Posts: 14062
Joined: Sat Jul 14, 2007 15:44 pm
Location: Seldwyla
Contact:

Re: Addìng 2 new units.

Post by Scrat » Thu Oct 19, 2017 6:59 am

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..?

MrTroodon
Posts: 39
Joined: Sun Feb 21, 2016 2:50 am

Re: Addìng 2 new units.

Post by MrTroodon » Thu Oct 19, 2017 18:30 pm

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.

User avatar
MrMorgana
- Admin -
Posts: 783
Joined: Tue Aug 18, 2009 13:42 pm
Location: Koprulu Sector

Re: Addìng 2 new units.

Post by MrMorgana » Thu Oct 19, 2017 19:32 pm

you should come to discord or tavern and let me help you via teamviewer

MrTroodon
Posts: 39
Joined: Sun Feb 21, 2016 2:50 am

Re: Addìng 2 new units.

Post by MrTroodon » Thu Oct 19, 2017 22:56 pm

Thats actually a good idea XD!!!! I will see when i have some free time.

Post Reply

Return to “English”