This site is in archival mode. A replacement is being developed. In the meantime, please use the PBW2 Forums for community discussions. The replacement software for this site will use a unified account system with PBW2, and any newly created threads will carry over.
Welcome to Spaceempires.net
Login or Register

Search
Modules
· Content
· Downloads
· Forums
· Game Info
· Image Gallery
· Links
· Shipyards
· Topics
· Staff

User Info
· Welcome, Anonymous
Membership:
· New: Astorre
· New Today: 0
· New Yesterday: 0
· Overall: 3155

People Online:
· Visitors: 129
· Members: 0
· Total: 129

  

Spaceempires.net :: Mod Out LCX as Early Warship :: View topic
Forum FAQ :: Search :: Memberlist :: Usergroups :: Profile :: Log in to check your private messages :: Log in


Mod Out LCX as Early Warship

 
Post new topic   Reply to topic    Spaceempires.net Forum Index -> SEV Modding FAQ
View previous topic :: View next topic  
Author Message
Fyron
Galactic Guru


Joined: Aug 04, 2003
Location: CA, USA

PostPosted: Thu Sep 21, 2006 7:41 pm    Post subject: Mod Out LCX as Early Warship Reply with quote

As an example of the flexibility of the SE5 data format, I present to you a way to kill the gamey tactic of using light carriers as warships early on. This could also be used to make non-combatant ships (eg: mining hulls, transports, colony ships) non-combatant by not carrying many weapons, rather than just large to hit penalties that still allow the use of missiles.

First, you must add an ability to every single weapon. AI Tag ## abilities have stuck around, so I will use one of those. The following must be added to every weapon in Components.txt:

====================
Number Of Abilities := 1
Ability 1 Type := AI Tag 01
Ability 1 Description :=
Ability 1 Scope := Space Object
Ability 1 Range Formula := 0
Ability 1 Amount 1 Formula := 0
Ability 1 Amount 2 Formula := 0
====================

You can do this in a flash by extracting the following Python script in your mod's Data folder and running it. It will create a "ComponentsTemp.txt" file with the extra ability appended to all weapons.

add_ability.zip

Next, we need to modify the light carrier hull in VehicleSizes.txt. This is an abbreviated portion of the light carrier entry:

====================
Number Of Requirements := 7
Requirements Evaluation Availability := 1, 2
Requirements Evaluation Allows Placement := 3, 4, 5, 6, 7
Requirements Evaluation Allows Usage := TRUE
Requirement 1 Description := Empire must have at least tech level 1 in Light Hull Construction.
Requirement 1 Formula := Get_Empire_Tech_Level("Light Hull Construction") >= (1 + ([%Level%] - 1))
Requirement 2 Description := Empire must have at least tech level 1 in Fighters.
Requirement 2 Formula := Get_Empire_Tech_Level("Fighters") >= (1 + ([%Level%] - 1))
Requirement 3 Description := This vehicle must have 1 Bridge.
Requirement 3 Formula := (Get_Design_Ability_Component_Count("Control Center") = 1) or (Get_Design_Ability_Component_Count("Master Computer") >= 1)
Requirement 4 Description := This vehicle must have at least Life Support for 100 crew members.
Requirement 4 Formula := (Get_Design_Ability_Total("Life Support", 1) >= 100) or (Get_Design_Ability_Component_Count("Master Computer") >= 1)
Requirement 5 Description := This vehicle must have at least Crew Quarters for 100 crew members.
Requirement 5 Formula := (Get_Design_Ability_Total("Crew Quarters", 1) >= 100) or (Get_Design_Ability_Component_Count("Master Computer") >= 1)
Requirement 6 Description := This vehicle can only have a maximum of 12 movement.
Requirement 6 Formula := Get_Design_Ability_Component_Count("Movement Standard") <= 12
Requirement 7 Description := This vehicle must have at least 50% of its hull dedicated to Fighter Bays.
Requirement 7 Formula := Get_Design_Ability_Percentage_Of_Hull_Space("Units - Launch", "Fighter") >= 50
====================

Take a look at Req 6. This is how max engines are defined now, a limit on the ability. Since we gave all weapons the ability AI Tag 01, we can use a similar limit to limit the number of weapons. You could add this:

====================
Requirement 8 Description := This vehicle can only have a maximum of 3 weapon systems.
Requirement 8 Formula := Get_Design_Ability_Component_Count("AI Tag 01") <= 3
====================

Of course, remember to increase the Num Reqs tag and add 8 to the allows placement, as so:

====================
Number Of Requirements := 8
Requirements Evaluation Availability := 1, 2
Requirements Evaluation Allows Placement := 3, 4, 5, 6, 7, 8
====================

Voila! Now, light carriers can only have 3 weapons!

Alternatively, you could make the limit a percent of the hull space, by making Req 8 be this instead:

====================
Requirement 8 Description := This vehicle can have at most 10% of its hull dedicated to weapon systems.
Requirement 8 Formula := Get_Design_Ability_Percentage_Of_Hull_Space("AI Tag 01", 1) <= 10
====================


Smarter than your average Texrak.


Back to top
CaptainKwok
Balance Guru


Joined: Aug 04, 2003
Location: Toronto, Canada

PostPosted: Thu Sep 21, 2006 7:45 pm    Post subject: Reply with quote

As I commented at Shrapnel - I wonder if there is a way to count weapon components without tagging them. That would be very useful and save on a lot of the labour required for this suggestion.

Space Empires Depot | SE:V Balance Mod


Back to top
Fyron
Galactic Guru


Joined: Aug 04, 2003
Location: CA, USA

PostPosted: Thu Sep 21, 2006 7:48 pm    Post subject: Reply with quote

I did not see a formula for "weapon count," sadly. All I saw was what mounts use:

Requirement 1 Formula := Get_Component_Weapon_Type() = "Direct Fire"

Which is just a bool, not a count. Sad


Smarter than your average Texrak.


Back to top
Kana
Space Emperor


Joined: Jan 15, 2005

PostPosted: Thu Sep 21, 2006 7:53 pm    Post subject: Reply with quote

Still this is good news...modding is going to produce mods only dreamed of for SEIV...

Back to top
Xeriar
Space Emperor


Joined: Sep 10, 2006

PostPosted: Thu Sep 21, 2006 8:01 pm    Post subject: Reply with quote

VehicleSizes is one of the locked files, stop mocking us with your Beta Testerness! >_>

Back to top
Shektho
Space Emperor


Joined: Aug 05, 2006

PostPosted: Fri Sep 22, 2006 9:13 pm    Post subject: Reply with quote

Quote:
This is how max engines are defined now, a limit on the ability.


thats a little dissapointing as it means the we cant do qnp Sad [/quote]


Back to top
albi_joe
Space Emperor


Joined: Mar 19, 2005
Location: USA

PostPosted: Fri Sep 22, 2006 10:25 pm    Post subject: Reply with quote

The way I am reading it, QNP would work the same. (<---Not a beta tester)

This just means you can do a limit on anything. Check VehicleSizes.txt for a full ship (this was abbreviated).


There is a fine line between Genius and Insanity. I am firmly on one side of that line!


Back to top
Fyron
Galactic Guru


Joined: Aug 04, 2003
Location: CA, USA

PostPosted: Fri Sep 22, 2006 11:42 pm    Post subject: Reply with quote

There is still an engines per move for each hull, which is the real heart of QNP mechanics. The engine limit req can easily be deleted to allow unlimited engines on the hull (subject to total hull space of course). QNP is actually now better than in SE4, since ships have accelerations and turn rates in combat. It's not so quasi now. Wink

Smarter than your average Texrak.


Back to top
ekolis
Virtual Guru


Joined: Aug 04, 2003
Location: Cincinnati, OH, USA

PostPosted: Sat Sep 23, 2006 5:27 pm    Post subject: Reply with quote

Are the accelerations and turn rates hardcoded to be directly proportional to the top speeds, though? Think of Mario Kart, where Bowser was the fastest, but he took forever to get up to speed Wink

That's no space station - it's a spreadsheet!


Back to top
Phoenix-D
Space Emperor


Joined: Sep 17, 2006

PostPosted: Tue Sep 26, 2006 9:45 pm    Post subject: Reply with quote

No, there are seperate entries for each of:
-maximum speed
-turn rate
-acceleration
-deceleraton

for both space and ground combat. Each has an entry for maximum, minimum, and decrease per kT. (haven't figured out what the later DOES yet though).


Back to top
Mithrandir
Space Emperor


Joined: May 17, 2011

PostPosted: Tue May 24, 2011 4:25 am    Post subject: Reply with quote

CaptainKwok wrote:
As I commented at Shrapnel - I wonder if there is a way to count weapon components without tagging them. That would be very useful and save on a lot of the labour required for this suggestion.


As I am fairly new to space empires I am not sure if it is possible, but would it be possible to create a function with"Get_Design_Specific_Component_Count ("a weapon")" in it for every weapon that adds up the count and returns the total count.
Is what i would do in visual basic like applications, don't know if it is possible with space empires.


Back to top
Display posts from previous:   
Post new topic   Reply to topic    Spaceempires.net Forum Index -> SEV Modding FAQ All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
All logos and trademarks used on this site, all comments and stories posted for reading, all files hosted for download,
and all art work hosted for viewing are property of their respective owners; all the rest copyright 2003-2010 Nolan Kelly.
Syndicate news: SpaceEmpires.net News RSS Feed - Syndicate forums: SpaceEmpires.net Forums RSS Feed
Page Generation: 0.69 Seconds