Login | Register


All times are UTC + 1 hour


It is currently Wed Nov 22, 2017 10:14 am




Post new topic Reply to topic  [ 44 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Addìng 2 new units.
PostPosted: Sun Oct 15, 2017 16:34 pm 
- Admin -
User avatar

Joined: Tue Aug 18, 2009 13:42 pm
Posts: 771
Location: Koprulu Sector
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


Top
 Offline Profile  
 
 Post subject: Re: Addìng 2 new units.
PostPosted: Sun Oct 15, 2017 19:09 pm 

Joined: Sun Feb 21, 2016 2:50 am
Posts: 39
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.


Top
 Offline Profile  
 
 Post subject: Re: Addìng 2 new units.
PostPosted: Sun Oct 15, 2017 19:31 pm 
- Admin -
User avatar

Joined: Tue Aug 18, 2009 13:42 pm
Posts: 771
Location: Koprulu Sector
cool, then what are the problems to be fixed?


Top
 Offline Profile  
 
 Post subject: Re: Addìng 2 new units.
PostPosted: Sun Oct 15, 2017 19:55 pm 

Joined: Sun Feb 21, 2016 2:50 am
Posts: 39
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.


Top
 Offline Profile  
 
 Post subject: Re: Addìng 2 new units.
PostPosted: Mon Oct 16, 2017 6:48 am 
- Admin -
User avatar

Joined: Tue Aug 18, 2009 13:42 pm
Posts: 771
Location: Koprulu Sector
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


Top
 Offline Profile  
 
 Post subject: Re: Addìng 2 new units.
PostPosted: Mon Oct 16, 2017 9:29 am 
- Mod -
User avatar

Joined: Sat Jul 14, 2007 15:44 pm
Posts: 14025
Location: Seldwyla
does the unit walk, talk, attack and follow any command once you spawn it?

_________________
Image
Image
2nd Place Johnnyzocker's Tournament 2008.
2nd Place Saturday Battle Tournament 2010.
3rd Place X-Mas Tournament 2010.


Top
 Offline Profile  
 
 Post subject: Re: Addìng 2 new units.
PostPosted: Mon Oct 16, 2017 16:46 pm 

Joined: Sun Feb 21, 2016 2:50 am
Posts: 39
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.


Top
 Offline Profile  
 
 Post subject: Re: Addìng 2 new units.
PostPosted: Mon Oct 16, 2017 19:55 pm 
- Admin -
User avatar

Joined: Sat Apr 18, 2009 14:17 pm
Posts: 1979
How about you post the relevant sections of your techtree here?

_________________
I've never seen code like this.

CEP Moddb | CEP download
ParaWelt TicTacToe | Multiplayer TicTacToe/4 gewinnt/etc v1.2


Top
 Offline Profile  
 
 Post subject: Re: Addìng 2 new units.
PostPosted: Tue Oct 17, 2017 0:57 am 

Joined: Sun Feb 21, 2016 2:50 am
Posts: 39
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'


Top
 Offline Profile  
 
 Post subject: Re: Addìng 2 new units.
PostPosted: Tue Oct 17, 2017 0:58 am 

Joined: Sun Feb 21, 2016 2:50 am
Posts: 39
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'


Top
 Offline Profile  
 
 Post subject: Re: Addìng 2 new units.
PostPosted: Tue Oct 17, 2017 0:59 am 

Joined: Sun Feb 21, 2016 2:50 am
Posts: 39
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'


Top
 Offline Profile  
 
 Post subject: Re: Addìng 2 new units.
PostPosted: Tue Oct 17, 2017 0:59 am 

Joined: Sun Feb 21, 2016 2:50 am
Posts: 39
hu_giganotosaurus {
priority = '10000'
Modificators {
DisableAction {
op = 'invisible'
path = '/Actions/Hu/Build/ANML/hu_giganotosaurus'


Top
 Offline Profile  
 
 Post subject: Re: Addìng 2 new units.
PostPosted: Tue Oct 17, 2017 6:21 am 
- Admin -
User avatar

Joined: Tue Aug 18, 2009 13:42 pm
Posts: 771
Location: Koprulu Sector
okay, set visibility = '-5' to -1, so that the action will become visible with big farm and epoch upgrade


Top
 Offline Profile  
 
 Post subject: Re: Addìng 2 new units.
PostPosted: Tue Oct 17, 2017 9:05 am 
- Mod -
User avatar

Joined: Sat Jul 14, 2007 15:44 pm
Posts: 14025
Location: Seldwyla
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).

_________________
Image
Image
2nd Place Johnnyzocker's Tournament 2008.
2nd Place Saturday Battle Tournament 2010.
3rd Place X-Mas Tournament 2010.


Top
 Offline Profile  
 
 Post subject: Re: Addìng 2 new units.
PostPosted: Tue Oct 17, 2017 17:27 pm 

Joined: Sun Feb 21, 2016 2:50 am
Posts: 39
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.


Top
 Offline Profile  
 
 Post subject: Re: Addìng 2 new units.
PostPosted: Thu Oct 19, 2017 6:59 am 
- Mod -
User avatar

Joined: Sat Jul 14, 2007 15:44 pm
Posts: 14025
Location: Seldwyla
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..?

_________________
Image
Image
2nd Place Johnnyzocker's Tournament 2008.
2nd Place Saturday Battle Tournament 2010.
3rd Place X-Mas Tournament 2010.


Top
 Offline Profile  
 
 Post subject: Re: Addìng 2 new units.
PostPosted: Thu Oct 19, 2017 18:30 pm 

Joined: Sun Feb 21, 2016 2:50 am
Posts: 39
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.


Top
 Offline Profile  
 
 Post subject: Re: Addìng 2 new units.
PostPosted: Thu Oct 19, 2017 19:32 pm 
- Admin -
User avatar

Joined: Tue Aug 18, 2009 13:42 pm
Posts: 771
Location: Koprulu Sector
you should come to discord or tavern and let me help you via teamviewer


Top
 Offline Profile  
 
 Post subject: Re: Addìng 2 new units.
PostPosted: Thu Oct 19, 2017 22:56 pm 

Joined: Sun Feb 21, 2016 2:50 am
Posts: 39
Thats actually a good idea XD!!!! I will see when i have some free time.


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 44 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: