Page 1 of 2 12 LastLast
Results 1 to 20 of 24

Thread: Adding ballista towers to stone walls, is it possible?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Adding ballista towers to stone walls, is it possible?

    Is it possible to add ballista towers to the first tier of stone wall?

    If so then it isn't working for me and this is what I have done so far:

    descr_walls.txt:
    Code:
    ; SMALL STONE/TOWN WALLS
    wall
    {
    	level 2
    	siege_tower_size small
    
    	wall
    	{
    		full_health 1800
    		battle_stats flammability_none impact_damage_high
    		localised_name wall
    	}
    	gateway
    	{
    		full_health 2500
    		battle_stats flammability_none impact_damage_high
    		localised_name gateway
    		medium_wooden
    		medium_reinforced
    		medium_iron
    	}
    	tower
    	{
    		full_health 2000
    		control_area_radius 30
    		manned 1
    		battle_stats flammability_none impact_damage_high
    		localised_name tower
    		
    		missile_level
    		{
    			stat		6, 0, arrow, 120, 10, missile, missile_mechanical, piercing, arrow_tower, 10, 1
    			stat_attr	area
    			shot_sfx	TOWER_ARROW_FIRING
    			fire_angle	45
    
    			; unit size 	 reload_ms flaming_reload_ms 
    			fire_rate small  1400	   1600
    			fire_rate normal 1300	   1500
    			fire_rate large  1200      1400
    			fire_rate huge   1100      1300
    		}
    		
    		missile_level
    		{
    			stat		40, 0, tower_ballista, 150, 10, siege_missile, artillery_mechanical, piercing, ballista_tower, 350, 1
    			stat_attr	ap, bp
    			shot_sfx	TOWER_BALLISTA_FIRING	
    			fire_angle	45
    
    			; unit size 	 reload_ms flaming_reload_ms 
    			fire_rate small  4000	   	 6500		
    			fire_rate normal 3500	   	 5500
    			fire_rate large  3000        4500
    			fire_rate huge   2500        3500
    		}
    	}
    	gatehouse
    	{
    		full_health 2800
    		control_area_radius 20
    		manned 1
    		battle_stats flammability_none impact_damage_high
    		localised_name gatehouse
    		
    		missile_level
    		{
    			stat		7, 0, arrow, 120, 10, missile, missile_mechanical, piercing, arrow_tower, 10, 1
    			stat_attr	area
    			shot_sfx	TOWER_ARROW_FIRING
    			shot_gfx	
    			fire_angle	90
    
    			; unit size 	 reload_ms flaming_reload_ms 
    			fire_rate small  1300	   1500
    			fire_rate normal 1200	   1400
    			fire_rate large  1100      1300
    			fire_rate huge   1000      1200
    		}
    	}
    }
    export_descr_buildings.txt:
    Code:
    building tower
    {
    	convert_to castle_tower
    	levels ballista_towers cannon_towers 
    	{
    	ballista_towers city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } and event_counter governor_present 1 
    	{
    		convert_to 0
    		capability
    		{
    			tower_level 2
    		}
    		material stone
    		construction	6 
    		cost	3200 
    		settlement_min city
    		upgrades
    		{
    			cannon_towers
    		}
    	}
    	cannon_towers city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } and event_counter governor_present 1 and event_counter tokus_master_eckart 1 
    	{
    		convert_to 1
    		capability
    		{
    			tower_level 3
    		}
    		material stone
    		construction	8 
    		cost	6400 
    		settlement_min huge_city
    		upgrades
    		{
    		}
    	}
    	}
    	plugins 
    	{
    	}
    }
    The stuff I've changed is in blue. Is there another file I should be looking at? ... Or am I just doomed to fail?
    Last edited by Taiji; July 29, 2010 at 06:51 PM.

  2. #2
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Adding ballista towers to stone walls, is it possible?

    stat 40, 0, tower_ballista, 150, 10, siege_missile, artillery_mechanical, piercing, ballista_tower, 350, 1
    Does the projectile 'tower_ballista' exist?
    Does the building 'ballista_tower' exist? - in the same sense as arrow_tower, not EDB wise. Note in the EDB it is 'towers' (plural)
    Last edited by Gigantus; July 29, 2010 at 10:27 PM.










  3. #3
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Adding ballista towers to stone walls, is it possible?

    Yeah, these are the standard vanilla labels. I don't think this aspect of vanilla has been changed at all in DLV. So for the already existing towers on large and huge stone walls, this is the code. That instance you mention, on the weapon stats, is meant to be for a sound effect.

    And I notice that I made a mistake I often see others make when I made my post: I did not state exactly what happens!

    Basically the player can build ballista towers in campaign, but when it comes to battle they are still arrow towers. And they just shoot arrows.
    Last edited by Taiji; July 30, 2010 at 06:46 AM.

  4. #4
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Adding ballista towers to stone walls, is it possible?

    Why don't you simply do it through the tower_level entry in the EDB?

    tower_level 1 = arrow
    tower_level 2 = ballista
    tower_level 3 = canon










  5. #5
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Adding ballista towers to stone walls, is it possible?

    It's done, as far as I can see. It's used by the tower entry.

  6. #6
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: Adding ballista towers to stone walls, is it possible?

    For battle maps is this going to be one of those Wilddog and JohnWhite are working on?

  7. #7
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Adding ballista towers to stone walls, is it possible?

    I don't know, Irishron, would you link their thread, please? I'll check it out.

    edit:

    I think this is it, http://www.twcenter.net/forums/showthread.php?t=323503

    Thanks for the headsup, Irishron
    Last edited by Taiji; July 30, 2010 at 09:19 AM.

  8. #8
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: Adding ballista towers to stone walls, is it possible?

    you're welcome.

  9. #9
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Adding ballista towers to stone walls, is it possible?

    Is it possible to add ballista towers to the first tier of stone wall?
    All walls have tower_level 1 in the EDB. What I meant: why don't you change it to tower_level 2?










  10. #10
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Adding ballista towers to stone walls, is it possible?

    That's the effect of adding ballista towers, 'tower_level 2'. Sticking it directly on the wall... Well I doubt it would do anything different. And if it did then I still wouldn't have what I want.

    I appreciate the suggestion and I might test it out anyway, thanks Gigantus

  11. #11
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Adding ballista towers to stone walls, is it possible?

    Then I might have misunderstood you, I thought you wanted to have ballista towers with the first stone wall level.
    If you want them to be build at that level instead straight on once the wall level is build change the "settlement_min large_city" to city (or was it large town?) in the requirements for the ballista tower.










  12. #12
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Adding ballista towers to stone walls, is it possible?

    It was 'city' and that's what my example in the OP shows. But apparently the effect doesn't stretch as far as the battle map.

  13. #13

    Default Re: Adding ballista towers to stone walls, is it possible?

    Hey Taiji acc to The EDB the entry is somewhat like this:-
    Spoiler Alert, click show to read: 
    building tower
    {
    convert_to castle_tower
    levels ballista_towers cannon_towers
    {
    ballista_towers city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }
    {
    convert_to 0
    capability
    {
    tower_level 2
    }
    material stone
    construction 3
    cost 3200
    settlement_min large_city

    So u have changed the city level so it cool there but notice the tower_level in blue it is set to 2.
    And under the descr_walls.txt it says:-
    Spoiler Alert, click show to read: 
    tower
    {
    full_health 800
    control_area_radius 30
    manned 1
    battle_stats flammability_none impact_damage_high
    localised_name tower


    missile_level<--------I think this is the level 1
    {
    stat 12, 0, arrow, 120, 10, missile, missile_mechanical, piercing, arrow_tower, 10, 1
    stat_attr no
    shot_sfx TOWER_ARROW_FIRING
    fire_angle 45

    ; unit size reload_ms flaming_reload_ms
    fire_rate small 1500 1500
    fire_rate normal 1250 1500
    fire_rate large 1250 1500
    fire_rate huge 1250 1500
    }

    missile_level<--------I think this is the level 2
    {
    stat 40, 0, tower_ballista, 150, 10, siege_missile, artillery_mechanical, piercing, ballista_tower, 350, 1
    stat_attr no
    shot_sfx TOWER_BALLISTA_FIRING
    fire_angle 45

    ; unit size reload_ms flaming_reload_ms
    fire_rate small 4500 6500
    fire_rate normal 3000 5500
    fire_rate large 2000 4500
    fire_rate huge 1500 3000
    }
    missile_level<--------I think this is the level 3
    {
    stat 40, 0, bombard_shot, 290, 10, siege_missile, artillery_gunpowder, piercing, cannon_tower, 80, 1
    stat_attr no
    shot_sfx CANNON_FIRING
    fire_angle 45

    ; unit size reload_ms flaming_reload_ms
    fire_rate small 20000 16000
    fire_rate normal 16000 16000
    fire_rate large 14000 16000
    fire_rate huge 12000 16000
    }
    }


    So i think if copy the level 2 entries in level 1, then level 1 with arrow tower will now have the capability of ballista tower and the level 1 tower can be by default build by smaller settlements like minor_city.

    What do u say am i starting to wild guess again or this thing really makes sense.
    If this works then all we have to do is lower the stats of level 1 ballista as compared to original level 2 ballista tower.
    Last edited by Ishan; July 30, 2010 at 02:57 PM.

  14. #14
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Adding ballista towers to stone walls, is it possible?

    Hmm I don't know what you're trying to point out there, Ishan. Arrow towers are level 1, replacing their entry with ballista towers would mean no more arrow towers. I want the upgrade available, I don't want them to come as standard.

    But still that's an interesting thing to test, to see if they can fire as ballista towers at level 1. Thanks for the idea

  15. #15

    Default Re: Adding ballista towers to stone walls, is it possible?

    Then perhaps we can add a whole new level in between Level 1 and 2. Where Level 1 can be upto large town, new Level 2 can be like upto minor_city, level 3 upto large_city and 4th(cannon) in huge city.
    I know it's easy to say but it's the actual implementation that counts.

  16. #16
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Adding ballista towers to stone walls, is it possible?

    It turns out that what I'd done already was working fine. I just hadn't checked it since implementing it, then someone gave me feedback to say it wasn't working.

    There's no subsititue for one's own eyes

    Thanks for helping, everyone, and apologees for the timewasting

  17. #17
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: Adding ballista towers to stone walls, is it possible?

    It is not time wasted, Taiji. We all just learned something together.

  18. #18
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Adding ballista towers to stone walls, is it possible?

    If you would tell us now what you had done already, then we all would be grateful. It did get a bit confusing...










  19. #19

    Default Re: Adding ballista towers to stone walls, is it possible?

    @Gigantus
    Taiji has successfully added ballista tower upgrade to lower level of settlement(large_city).
    Now he can add this upgrade to cities as well, which is a lower level of large_city.
    Similarly we can add cannon towers to lower levels of huge_city.

  20. #20
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Adding ballista towers to stone walls, is it possible?

    @Ishan
    I am aware of that, but was it through EDB, descr_walls or which way?










Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •