Phase Drive upgrade / Research tree modding Tutorial

Accelerating Ships speed between 2 planets

How to "upgrade" ship speed in between 2 planets without changing the ship's in-game overall speed?
Let's create a new technology!
Really usefull on huge maps.

I found how it works, how the layout of the research tree work so you can add your research and rezise / move the 3 block that form the subcategories.
I know I'm not the first one to modify the Research tree, but I intend to teach you how to add this technology over any other mods.

I personnaly use "The Mars Effect" merged with 2-3 other mods for graphic, sounds and new planet types
I will provide my versions of the files. you can use the 6 research files.
But for the player entity and String files, you should manually modify them to prevent crash.


This mod is a "Do is a do it yourself"

I recommend downloading Winmerge from Winmerge.org
A powerfull tool to compare your files.
Use that tool to compare my files with yours to understand my modifications and paste them over your favorite mod


Here is the Step by step procedure on how to had a new research in the tech tree.

Files RESEARCHSUBJECT_HYPERSPACD.rar English.rar PlayerX.rar
/////////////////////////////////////////////////////////////////////
// Tutorial In progress //
/////////////////////////////////////////////////////////////////////

So here is the list of files you need to play with:
(names might not be totally accurate since I'm doing that by memory for now, it will be updated later)

Create: (use my files)
Researchsubject_HyperSpaceSpeed_UpgradePhase0.entity
Researchsubject_HyperSpaceSpeed_UpgradePhase1.entity

Researchsubject_HyperSpaceSpeed_UpgradePSI0.entity
Researchsubject_HyperSpaceSpeed_UpgradePSI1.entity

Researchsubject_HyperSpaceSpeed_UpgradeTECH0.entity
Researchsubject_HyperSpaceSpeed_UpgradeTECH1.entity

Modify:
PlayerTec.entity
PlayerPhase.entity
PlayerPsi.entity
English.str (string folder)


//////////////
// PART 1 //
///////////// OPTIONAL STEP
//You can use my files without changes
//Link: RESEARCHSUBJECT_HYPERSPACD.rar
//
//Learning how to make a new research file:
//First thing to do is copy a Research File and modify it, Here is how a created them
//Files to modify : Researchsubject_HyperSpaceSpeed_UpgradePhase0.entity
// Researchsubject_HyperSpaceSpeed_UpgradePSI0.entity
// Researchsubject_HyperSpaceSpeed_UpgradeTECH0.entity

//change the modifier type for this
researchModifier
modifierType "HyperspaceInSystemSpeedAdjustment" //the bad ass attribute found in an artifact
baseValue 0.000000
perLevelValue 0.250000
//will give 35% speed to all ship Hyperspace speed, you can tweak that number

//you can also modify
MaxNumResearchLevels 4 //will enable researching the same upgrade mutiples times

//Chose an Icon that please you, this one is not really appropriate,
//find one that is more appropriate looking at the 3 races research tree
hudIcon "HUDICON_RESEARCHSUBJECT_ARTIFACT_HYPERSPACESPEED"
smallHudIcon "HUDICONSMALL_RESEARCHSUBJECT_ARTIFACT_HYPERSPACESPEED"

//where do you want this icon to be?
//combat or non-combat tree?
//there is 3 category... Block 0, 1 or 2 ?? Personnaly use Block 1
//pos [ Column? , Line? ] 0 , 1 , 2 ... ?? Personnally I just extended the 2nd block for the Phase, ( block 1 )
//by putting pos [ 0 , 3 ]
//At the moment, this mean you will add a 4th line to you 2nd non-combat research window
//The icon will overlap with the 3rd Block until you modify the layout of your research window
researchWindowLocation
block 1
pos [ 0 , 3 ]
ResearchField "NonCombat"

//Here come the first problems, This is a link to another file : English.str
//if you modify this attribute without modifying English.str,
//you will get an assert and game will crash when you will hover your pointer over the icon
//Replace the correct attribute for each race
NameStringID "IDS_Researchsubject_HyperSpaceSpeed_UpgradePhase0_NAME"
DescriptionStringID "IDS_Researchsubject_HyperSpaceSpeed_UpgradePhase0_DESCRIPTION"


//
//
//***Incomplete Tutorial***
//Left to be explained:
//Prerequisites, MinimumArtifactLevel, Tier, researchBoolModifiers, researchFloatModifiers
//Attribute not covered: (self explanatory)
//BaseUpgradeTime, PerLevelUpgradeTime, BaseCost, PerLevelCostIncrease
//
//



//////////////
// PART 2 //
///////////// MENDATORY STEP
//You should Only use my files as reference
//Link English.rar
//
//Second thing to do
//Modify the file: English.str
//You will ADD 12 Strings
StringInfo
ID "IDS_Researchsubject_HyperSpaceSpeed_UpgradePhase0_NAME"
Value " Write a short name for you research"
StringInfo
ID "IDS_Researchsubject_HyperSpaceSpeed_UpgradePhase0_DESCRIPTION"
Value "Write a pretty description about what your technology does"
//Repeat this step for all 6 research files, using the right names

//DO NOT FORGET TO UPDATE THE HEADER OF English.str (ie: NumStrings 5169 )
//The game will not see the 12 new strings of you do not update the header....
//This one gave me an headache yesterday, since I was not aware of it's existance
//This number varies depending on the mod you have currently updating with you technology
//You added 12 strings? (2 strings per files) then take your NumberString and add + 12 = ???? (ie 5169 + 12 = 5181)
//to tell the game you have extra strings.
NumStrings 5181

//////////////
//ok! let's resume what we just did:
//We created a new technology, it is now "functionnal", BUT it is NOT implemented in game yet
//Next step is to add the technology to each Race technological tree
//It will require lots of tries to resize each race tech tree


//////////////
// PART 3 //
///////////// MENDATORY STEP
//You should only use my files as reference
//But there are chances they will work without problems along with Sin Plus
//Link: PlayerX.rar
//
//Second thing to do
//Modify the file: PlayerTec.entity
// PlayerPhase.entity
// PlayerPsi.entity
//
//This is another tricky part. you got 3 race, each have a different technology tree
//You need to add 2 new technology per race.
//For the PlayerPhase.entity, you will need to modify the layout of the research window a bit.

/////////////////////////
// COMMING SOON //
/////////////////////////

Links:
Player http://files.filefront.com/PlayerXrar/;9825182;/fileinfo.html
String http://files.filefront.com/Englishrar/;9825180;/fileinfo.html
Research http://files.filefront.com/RESEARCHSUBJECT+HYPERSPACDrar/;9825181;/fileinfo.html





18,927 views 32 replies
Reply #1 Top
LOL
WHERE IS THE EDIT BUTTON FOR THE MAIN POST ON THIS FORUM ?

Bah! Moderators are there for something :-) Can one of you delete the part of my main post
Where the Tutorial start?

[update moved to OP by moderator]
Reply #2 Top
Well, it should be: Top right, hit the Tools Button, then Edit.

But I just checked my own post, and its not there. Weird, must have something to do with the Forum update.
Reply #3 Top
Yeah... I think I'm dumb then, I can't see it...
Only
-create new post
-Quote
-Reply
Reply #4 Top
This is worrying. They better sort it quick, else that is going to seriously f*ck with peoples mod pages who update regularly. I hope its a bug, rather than a new feature.
Reply #5 Top
Oh I missed seeing the // comment declarations, the nostalgia!

It's been my secret wish that we'll be able to comment the text files for our own reference.. that would make the strings file alone so much more manageable, but I'm sidetracking :P

Nice write-up :)
Reply #6 Top
It's been my secret wish that we'll be able to comment the text files for our own reference.. that would make the strings file alone so much more manageable
End of quote


I totally agree. Just a few moments ago it struck me that I am soon going to need comment sections in some of my files, mainly to see where my edits from one update stop and another update starts. Is there definitely no such thing in Sins files?

Reply #7 Top
yeah... the only edit button is in the "Last reply"
so I can't even update my reply.
Reply #8 Top
I totally agree. Just a few moments ago it struck me that I am soon going to need comment sections in some of my files, mainly to see where my edits from one update stop and another update starts. Is there definitely no such thing in Sins files?
End of quote


I haven't personally tried, but from all my experiences it just reads all the files line by line. I made a typo in the string file once and it messed up everything after it, so that also leads me to believe it doesn't ignore anything :P

Me, I'd love to be able to put a chunk of a file in a comment block when I change something, so I don't have to delete the original stuff to see if the new one will work :)
Reply #9 Top
yeah... the only edit button is in the "Last reply"
so I can't even update my reply.
End of quote


Yeh, thats not new, you can only edit a reply that hasn't be replied to itself. But the first post should also be editable. I have it on good authority now that it is a maintenance problem. Should be fixed soon, I hope.

Mmm... thats a shame Annatar. Maybe they will include some way to do it in the final Mod Tools. Maybe....
Reply #10 Top
By the way Uzi,

When I wrote:
//I personnaly use "The Mars Effect" merged with 2-3 other mods for graphic, sounds and new planet types

your mod is in that, How do you edit the icon?
I want to take on already in game and tweak it, in photoshop.
How can I make a readable file for he tech tree icons?


And I'd like you opinion on The bonus in question in my post.

I was thinking about 3 different Tiers of 3 levels each.

Tier 0
level 0 1 2
Bonus 10%

Tier 3
level 0 1 2
Bonus 12,5%

Tier 7
level 0 1 2
Bonus 15%

Maybe an extra one at tier 9 with only 1 level, really expensive that would give 25%

Would it bee too much?

try a huge map with a system that has only few planets with few phase lines...
can be very long only to make it to the sun....
Reply #11 Top
Right. I'll be totally honest. When I popped on this thread, I only saw your first reply, and it only contained the 'Where is the Edit Button' bit. I didn't read the first post, nor the added bit to your first reply, also it seems very confusing (maybe thats just me). Could you just give me the gist of your post, upgrading what? And which Icon do you mean? The main menu logo I added, or the research page logo, or even the custom research icons? I'm lost, sorry (:(
Reply #12 Top
I will probably just restart a fresh post and mark this one for delete when the forum will be repaired.


I am moding
modifierType "HyperspaceInSystemSpeedAdjustment"

I want to make a research tree in the block 1 of the non-combat research.


Reply #13 Top
Right. How far have you got with making it? Making new blocks as far as I know is impossible, but you can expand the default ones to include a few extra lines.

As for the research, I think 15% is fine, and personally I would up it to something that will make a difference, namely top 30%, maybe more. But thats just me, and I do have a tendency to over do bonuses somewhat ;)
Reply #14 Top
LOL
WHERE IS THE EDIT BUTTON FOR THE MAIN POST ON THIS FORUM ?
End of quote


You can edit the OP via the Tools button. As others have said, regular replies can't be edited after another reply has been made, but the OP can be edited at any time.
Reply #15 Top
Psst, kryo.. the tools button is gone :P Or moved to a place we can't find it :)
Reply #16 Top
Is the forum repaired yet?

:LOL:

(:(

X-(

:SNIFF!:
Reply #17 Top
No, and thank you for the profuse amount of smileys :d
Reply #18 Top
The first part of my mod is completed, and can tell you that 25% increase in speed is nothing when playing a huge map.

I tryed, yesterday, to put my ship in a long jump that would take at least 10 min to complete. And started the reserach to see if the speed difference was noticable.
25% is not.


Here is my setings in the research files

Research upgrade0
per level = 25%
levels = 2


Tonight I will further experiment by changing this:


Research upgrade0
per level = 35%
levels = 4



What is the
baseValue 0.000000 for?

does it mean that if i put a value, like
baseValue 0.150000
perLevelValue 0.350000

I will have a bonus of 50% the first level then + 35% each following one?
Reply #19 Top
I will have a bonus of 50% the first level then + 35% each following one?
End of quote


You mean 15%, right? Yes, that would be right. This is mainly for use with Fleet Supply etc, where each level is a new research button.
Reply #20 Top
I did some test with speed.

Research 0
35%
Max level 4

+

Research 1
65%
Maxlevel2

I can defenetly see a good speed difference, but it is not at the point where I'm satisfied.

I think I'll do a
Research 0
35%
maxlevel = 5

+

Research 1
85%
maxlevel = 2




As for the Basevalue, I'll do more test to be sure it override the perlevelvalue.
I could then put a base of 80% with 4x 35% levels

It would mean that once all research done, your ship would zoom on huge maps.

Once my tweaks completed,
AND IF THE FORUM IS REPAIRED...
I will post a step by step guide to create that mod over any other mods
I use "The Mars Effect" as a starting point.
I use space already available in Psi and Tech research tree, but I added one row to to one of Phase tech tree. I needed to resize and move the 3 non-combat blocs to get a neat result.

As for the icons... I would like to take one already in game and just change it a bit.
I got no clue yet how to modify them.
I'll find, or one of you will help me on that.
Reply #21 Top
- Uzii - wrote:
This is worrying. They better sort it quick, else that is going to seriously f*ck with peoples mod pages who update regularly. I hope its a bug, rather than a new feature.
End of quote

I'm with u m8 . . . Just made a post on this issue and fell over this thread here and see I’m not the only one who is frustrated X-(


kryo wrote:
You can edit the OP via the Tools button. As others have said, regular replies can't be edited after another reply has been made, but the OP can be edited at any time.
End of quote

Nope kryo - we can't edit the OP, sorry to say :)

Redion



Reply #22 Top
Seems there's a bug with the tools button not appearing for regular users. Should be sorted in a forums update later today.
Reply #23 Top
later today.
End of quote


Woohoo! Thanks a lot kryo, that was an annoying bug ;)
Reply #24 Top
My pokeage of Zoomy bore fruit!

(Yes, that was worded quite deliberately :D)
Reply #25 Top
Thx for the update Kryo ! :CONGRAT:

It is working now.