.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   SEV Modders Knowledge Base (http://forum.shrapnelgames.com/forumdisplay.php?f=154)
-   -   SE5 Modding: Variable and functions wishes (http://forum.shrapnelgames.com/showthread.php?t=31732)

Elsemeravin November 9th, 2006 04:53 PM

SE5 Modding: Variable and functions wishes
 
Hi,

In order to send Aaron an email as complete as possible, I would like to share the functions and variable I'm about to ask him so that you may add more before we can finally send him a full list.

1. A variable containing the level of research (ex: [%level%]) to use in requirement, in file TechArea.txt, so that we could link the requirement with the level (as now there are no pretty ways to use requirement once the tech is available for research), the same way we can do it in Components.txt
File(s): TechAreas.txt

2. A function returning the number of stars in system.
File(s): Components.txt, Facilities.txt

3. A function returning the number of planet in system.
File(s): Components.txt, Facilities.txt

4. A function returning the system type (black hole, nebula, single star, double stars, ...).
File(s): Components.txt, Facilities.txt

5. A function returning the size of planet.
File(s): Facilities.txt

6. A function returning the atmosphere of planet.
File(s): Facilities.txt

7. A function returning the gravity of planet.
File(s): Facilities.txt

8. A function returning the temperature of planet.
File(s): Facilities.txt

9. A function returning the radiation of planet.
File(s): Facilities.txt

10. A function returning the population of planet.
File(s): Facilities.txt

11. A function returning the production (mineral, rads, intel, ...) of planet.
File(s): Facilities.txt

12. A function returning the number of facilities with name <Name>.
File(s): Facilities.txt

13. A function returning the number of facilities with ability <Ability>.
File(s): Facilities.txt

14. A function returning the total of amount (1 or 2) of facilities with ability <Ability> (similar in components).
File(s): Facilities.txt

15. A function returning the total population on board the ship (in cargo).
File(s): Components.txt (all formula, not only requirement).

16. A function returning the number of component with name <Name> on the ship.
File(s): Components.txt (all formula, not only requirement).



Please add the one you think of/need.

Elsemeravin November 10th, 2006 02:42 PM

Re: SE5 Modding: Variable and functions wishes
 
17. A function returning the current accumulated galaxy wide bonus for caracteristic <Caracteristic> (for example attack bonus, of combat to hit minus, population increase, ..)
File(s): Facilities.txt, Components.txt, TechAreas.txt

18. A function returning the current accumulated system wide bonus for caracteristic <Caracteristic> (for example attack bonus, of combat to hit minus, population increase, ..)
File(s): Facilities.txt, Components.txt

19. A function returning the current accumulated planet wide bonus for caracteristic <Caracteristic> (for example attack bonus, of combat to hit minus, population increase, ..)
File(s): Facilities.txt

Docwho November 11th, 2006 01:58 AM

Re: SE5 Modding: Variable and functions wishes
 
20. An abiliy to flag there are Asteroids
files Components.txt

21. Opens warps Randoms type warps - unstable, mildly unstable, Very Unstable, stable and size (how big of a ship can move thuoght it.)
files Components.txt

22. Under Ship design. A filter for ship size. (I.E. 100kt to 2500kt in drop down buttons that can be moddifed. And/Or by clase name.)

23. Under combat setting could you add another attack type line. Such as they are to disable then captor the ship. And have the Ship use they weapons in combat. It is a real pain to deal with right now. You have to frist attack them then be defender to get it to work right.

President_Elect_Shang November 11th, 2006 02:51 AM

Re: SE5 Modding: Variable and functions wishes
 
Quote:

Docwho said:
23. Under combat setting could you add another attack type line. Such as they are to disable then captor the ship. And have the Ship use they weapons in combat. It is a real pain to deal with right now. You have to frist attack them then be defender to get it to work right.

I’m not sure I follow what you are asking for. If you want your ship to capture an enemy ship just set the strategy for your ship to “Capture Enemy Ships”. This way you don’t have to do it manually. Right now boarding is broken anyway and hopefully will be fixed in the next patch.

Docwho November 11th, 2006 03:05 AM

Re: SE5 Modding: Variable and functions wishes
 
NVM number 21. I am an dumb person at 1 am in the mornning. AND all week long. HEHEHEHEHe. I am god now..... Will post the new toy for you all to play with later. =p

Yes..... I am GOD..... Oh and side point I just added 2 types of colony to the game. lol. Now the only bug is that any race could start with them and not have to have the Racial need for them. Also I will point out there is 6 colony types that could be played with before you have the it takes 2 setup we had in SE4. it is 1-5 plus one that is any. Look in the main strings. lol

Well anyway. I am going to have fun now. I would like some one to makeup some pics for me. I suck at that part. I need Crystallen and Organic planet type pics. Would like the same number of of Crystallen as there are Gas gaints. Organic same number as there are Rock type.

Elsemeravin November 11th, 2006 07:13 AM

Re: SE5 Modding: Variable and functions wishes
 
Quote:

Docwho said:
20. An abiliy to flag there are Asteroids
files Components.txt


==> This is not a function or variable, maybe you should move it to a thread for new abilities wishes.
Quote:


21. Opens warps Randoms type warps - unstable, mildly unstable, Very Unstable, stable and size (how big of a ship can move thuoght it.)
files Components.txt


==> This is not a function or variable, maybe you should move it to a thread for new abilities wishes.
Quote:


22. Under Ship design. A filter for ship size. (I.E. 100kt to 2500kt in drop down buttons that can be moddifed. And/Or by clase name.)


==> This is not a function or variable, more like a UI change.
Quote:


23. Under combat setting could you add another attack type line. Such as they are to disable then captor the ship. And have the Ship use they weapons in combat. It is a real pain to deal with right now. You have to frist attack them then be defender to get it to work right.

==> This is not a function or variable, more like a UI change.

Now as I start to feel my first post was unclear when saying:

Quote:


In order to send Aaron an email as complete as possible, I would like to share the functions and variable I'm about to ask him so that you may add more before we can finally send him a full list.


I was meaning functions such like the actual Get_Design_Ability_Total() or Get_Design_Component_Count() and variables like [%level%] or [%range%] to be used in formulas in the modding files.
Sorry if I made you confused.

Docwho November 11th, 2006 03:42 PM

Combat bug???
 
Quote:

President_Elect_Shang said:
Quote:

Docwho said:
23. Under combat setting could you add another attack type line. Such as they are to disable then captor the ship. And have the Ship use they weapons in combat. It is a real pain to deal with right now. You have to frist attack them then be defender to get it to work right.

I’m not sure I follow what you are asking for. If you want your ship to capture an enemy ship just set the strategy for your ship to “Capture Enemy Ships”. This way you don’t have to do it manually. Right now boarding is broken anyway and hopefully will be fixed in the next patch.

What I am saying if you don't have Tactical Combat all the ships do is lunch there boarding parties then leave the area. But Strategic combat you can get them to fire they weapons then board the enemy ship. Even tho you can't Capture them yet. That is why I am asking for another attack line. So you could disable first then board. In one combat round instead of having to do two rounds of combat.

Fyron November 11th, 2006 03:54 PM

Re: SE5 Modding: Variable and functions wishes
 
Make Get_Vehicle_Size() work in Components.txt so that the cludge of scale mounts is no longer necessary.

Elsemeravin November 13th, 2006 02:51 PM

Re: SE5 Modding: Variable and functions wishes
 
Quote:

Imperator Fyron said:
Make Get_Vehicle_Size() work in Components.txt so that the cludge of scale mounts is no longer necessary.

Let's make it :

20. Make Function Get_Vehicle_Size() (returning tonnage of ship hull) work.
File: components.txt

21. Make a function returning the total structure of current ship.
File: components.txt

President_Elect_Shang November 13th, 2006 07:46 PM

Re: SE5 Modding: Variable and functions wishes
 
Vehicle Mounts my foot! I want it to work so I can create components with costs based on the size of the hull they are being placed in!

Elsemeravin November 14th, 2006 02:23 AM

Re: SE5 Modding: Variable and functions wishes
 
Quote:

President_Elect_Shang said:
Vehicle Mounts my foot! I want it to work so I can create components with costs based on the size of the hull they are being placed in!

So I would add::

20. Make Function Get_Vehicle_Size() (returning tonnage of ship hull) work.
File: Components.txt, ComponentEnhancements.txt

MrToxin December 8th, 2006 06:39 PM

Re: SE5 Modding: Variable and functions wishes
 
24. The ability to play with the maximum population size of a planet with facilities and/or research. It'd be nice to make Planet Maximum Population actually do something or let the Planet Size files take on formulas.

Facilities.txt and PlanetSize.txt

No amount of tinkering has let me do this.

Raapys January 15th, 2007 01:46 PM

Re: SE5 Modding: Variable and functions wishes
 
I'd really like to see the ability to add more vehicle types: right now we can only add new unit types. Being able to add vehicle types instead of just having 'ships' of different sizes would greatly ease work with components and mounts.

President_Elect_Shang January 15th, 2007 06:05 PM

Re: SE5 Modding: Variable and functions wishes
 
I'm not sure what you mean by new vehicle types. You can do that. In the SFTC I have added the shuttle, IDW, Pinnace, and HAWK Pod to name one or two. They aren't just repeats of vehicles sizes from stock, they are each unique and have there own advantages. You can set the abilities of vehicles in the same file. Want to create a atmospheric fighter or an atmospheric assault ship, or an atmospheric carrier. Want a special hull that can't warp?

Raapys January 15th, 2007 06:59 PM

Re: SE5 Modding: Variable and functions wishes
 
By new vehicle types I mean adding new categories such as 'Base' or 'Ship'. What you're talking about is adding new ships.

The game already allows you to create new vehicle types, but they all end up with unit behaviour( i.e. they stack in system view, etc.), unfortunately.

As I mentioned, the biggest advantage of this would be that you could simply put your new vehicle type in the 'Vehicle Types Allowed' field in components.txt to easily restrict weapons/components to certain vehicles without using mounts or other complex formulas.

Phoenix-D January 15th, 2007 07:04 PM

Re: SE5 Modding: Variable and functions wishes
 
It won't stop them from appearing in the components list, but you can stop a component from being usable for a vehicle size simply by adding a requirement to the hull.

Raapys January 15th, 2007 07:08 PM

Re: SE5 Modding: Variable and functions wishes
 
Yah, but that could mean creating a ton of extra requirements for each ship.

At any rate, being able to add new vehicle types would mean that we could more specifically specify which weapons can target which ships, too. Say you wanna make a special ship that can only be hit by a certain weapon, etc.

Not saying there aren't other ways to do this; there usually are. I'm just saying it would make the whole thing way easier and less formula'ish.

By the way, anyone know how the Range Formula for component abilities is supposed to be used?

Suicide Junkie January 15th, 2007 10:11 PM

Re: SE5 Modding: Variable and functions wishes
 
We need supply and ordnance storage abilities to work on facilities too.

President_Elect_Shang January 15th, 2007 11:46 PM

Re: SE5 Modding: Variable and functions wishes
 
I'll second that!

nesrall February 7th, 2007 02:51 PM

Re: SE5 Modding: Variable and functions wishes
 
Examples of ideas

If (Does_Enemy_use_Component_With_Name("Shield Generators") then
set primary_weapon := "Phased - Polaron Beam"

If (Does_Enemy_use_Component_With_Name("Crystalline Torpedo")then
set AI_Design_Tonnage_Ship_Pct_Shields := + 5
set AI_Design_Tonnage_Ship_Pct_Armor := -5

// Does warp point already have units in sector?
Sys_Get_Number_Of_Units_In_Space_Sector does not seem to return correctly if at all over a warp point.

A function to list colonies in defense location systems as a defense location sector to protect.

A function to return colony date creation.

A function for a drone minister.

A function returning number of nonvisible sectors in a system.

A function returning a random nonvisible sector in a system.

A function returning if one player has violated his treaty with another empire.

My apologies here for straying a small bit off thread but stock SEV resupply depots are way off, a resupply depot at level 20 supplies(without bonuses) generates just 3000 supplies per turn. While a fleet of only 10 ships will use well over 5000 supplies in just one movement phase.

furloph April 4th, 2007 01:31 AM

Re: SE5 Modding: Variable and functions wishes
 
I would like to see drop down menus in ship design and have weapons, armor, engines, shields and misc that way I dont have to wade through a large ammount of stuff to get that one component Im looking for.

Captain Kwok April 4th, 2007 07:49 AM

Re: SE5 Modding: Variable and functions wishes
 
You can right click on the component header column to get a quick filter menu for components.

Suicide Junkie April 8th, 2007 07:53 PM

Re: SE5 Modding: Variable and functions wishes
 
Or better yet, just turn off the alpha sorting to get the components arranged as they are in the file.

(Which is much more like a hardware catalog, and infinitely more useful)

KilsonX April 11th, 2007 11:42 AM

Re: SE5 Modding: Variable and functions wishes
 
I would like some over ride Functions for Component

Forced Target := Self ( Will apply weapon effect to target) Will not override the weapons target just what it affects)

Forced Range := ( Any Range Group)

Forced Range := [%Range%] = (3>= or 9<= )
So this weapon will only fire at targets that are 30ls - 90ls in range

Forced Range := "Point Blank" ,"Optimum Range", "Maximum Range", "Short Range"

Forced Fire := ( Self, Target, Friendly" ) (OnHit, Time,)(Damage, Range, Shield)

So it would look something like this

Forced Fire:= Self, Onhit =([%Damage%] = (25%,>=)) <--- this would check the total damage of Self When Hit, If Damage >= 25% Fire or Use Component

Really these are just for me to make a component I have been wanting since SE3

With these as viable options in the Component file, I can make a Component that will cause the ship to teleport if missiles are inbound and PD is not stopping them or if the Ship/Base/Fighter has taken Damage.


All times are GMT -4. The time now is 04:02 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.