Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

Diff2Money

Do you want to start editing Freelancer, but have no clue where to begin? This is the place for you to find things and talk about getting started on Freelancer Modding

Post Mon Sep 27, 2004 5:53 pm

Diff2Money

Hello.

I would like to know more about the Diff2Money.ini file. I know what it does, but what i dont know is what to do with the numbers in it.

For instance

Diff2Money = 0, 1800; the first line.

Basically this means that at level 0 the money you can get for a mission is about 1800. - (tell me if im wrong, this is just my understanding of it)

Next we have about 7 enteries before we even get to level 1. I mean whats that all about.

Diff2Money = 0.082100, 2200
Diff2Money = 0.112380, 2655
Diff2Money = 0.205130, 3219
Diff2Money = 0.351000, 3919
Diff2Money = 0.480490, 4792
Diff2Money = 0.657740, 5887
Diff2Money = 0.900380, 7264
Diff2Money = 1.232530, 9001 ; LEVEL 1

Now the rest of the enteries go all the way up to 100

Diff2Money = 1.687200, 11201
Diff2Money = 2.309610, 13994
Diff2Money = 3.161630, 17551
Diff2Money = 4.327960, 22093
Diff2Money = 5.924540, 27904
Diff2Money = 8.110100, 35356
Diff2Money = 11.101920, 44928
Diff2Money = 15.197410, 57246
Diff2Money = 20.803740, 73118
Diff2Money = 28.478239, 93597
Diff2Money = 38.983860, 120051
Diff2Money = 53.365002, 146192
Diff2Money = 73.051361, 190050
Diff2Money = 100.000000, 247065

So what I want to know is - how do i define each level ie: 1 - 100
I would like it clearly defined at each level, so that lvl 1 gets 1000, lvl 2 gets 2000 etc.

Now if it is possible to define each level, what do i do with the existing numbers. Im sure that the NPC's difficulty doesnt go up to 100, coz ive only seen missions that go up to level 38.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Next point - faction_prop.ini -

These enteries were found under li_n_grp. As we see, the level of the battleships in only 25. So my question is where do the lvl 100's come into the equation?

npc_ship = li_n_li_elite_d1-3
npc_ship = li_n_li_elite_d4
npc_ship = li_n_li_elite_d5
npc_ship = li_n_li_elite_d6
npc_ship = li_n_li_elite_d7
npc_ship = li_n_li_elite_d8
npc_ship = li_n_li_elite_d9
npc_ship = li_n_li_elite_d10
npc_ship = li_n_li_elite_d11-19
npc_ship = li_n_cruiser_d22
npc_ship = li_n_dreadnought_d25

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Next point - rank_diff.ini -

As you can see, the numbers that appeared on the

rank_diff = Base_0_Rank, 0.082100 ; Diff2Money = 0.082100, 2200
rank_diff = FreeTime_01_02, 0.112387 ; Diff2Money = 0.112387, 2655
rank_diff = FreeTime_02_03, 0.205129 ; Diff2Money = 0.205129, 3219
rank_diff = FreeTime_03_04, 0.351002 ; Diff2Money = 0.351002, 3919
rank_diff = FreeTime_04_05, 0.480486 ; Diff2Money = 0.480486, 4792
rank_diff = FreeTime_05_06, 0.657737 ; Diff2Money = 0.657737, 5887
rank_diff = FreeTime_07_08, 0.900376 ; Diff2Money = 0.900376, 7264
rank_diff = FreeTime_08_09, 1.232525 ; Diff2Money = 1.2325325, 9001
rank_diff = Mission_End, 38.983860 ; Diff2Money = 38.983860, 120051

Now that we see that these two files are related. What can we do about it?

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Next point - ship_classes.ini -

Here are the different classes that are used in npc_ships and faction_prop.

[ShipClass
nickname = diff1
member = d1

[ShipClass
nickname = diff2
member = d2

[ShipClass
nickname = diff3
member = d3

[ShipClass
nickname = diff4
member = d4

[ShipClass
nickname = diff5
member = d5

[ShipClass
nickname = diff6
member = d6

[ShipClass
nickname = diff7
member = d7

[ShipClass
nickname = diff8
member = d8

[ShipClass
nickname = diff9
member = d9

[ShipClass
nickname = diff10
member = d10

[ShipClass
nickname = diff11
member = d11

[ShipClass
nickname = diff12
member = d12

[ShipClass
nickname = diff13
member = d13

[ShipClass
nickname = diff14
member = d14

[ShipClass
nickname = diff15
member = d15

[ShipClass
nickname = diff16
member = d16

[ShipClass
nickname = diff17
member = d17

[ShipClass
nickname = diff18
member = d18

[ShipClass
nickname = diff19
member = d19

What i want to know is where these difficulties are set out and how i can increase the difficulty or spread it out a bit more so that i can have a larger number of random missions levels all with a different difficulties.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Next point - NpcRankToDiff.ini

What does all this mean???

NpcRank = 1, 0.009850, 0.035690, 0.077540, 0.135390, 0.209230, 0.299080, 0.404930, 0.526770
NpcRank = 2, 0.013480, 0.048860, 0.106140, 0.185330, 0.286420, 0.409410, 0.554300, 0.721100
NpcRank = 3, 0.018450, 0.066880, 0.145300, 0.253700, 0.392080, 0.560440, 0.758790, 0.987120
NpcRank = 4, 0.025260, 0.091560, 0.198900, 0.347290, 0.536720, 0.767190, 1.038700, 1.351260
NpcRank = 5, 0.034570, 0.125330, 0.272280, 0.475400, 0.734710, 1.050210, 1.421880, 1.849740
NpcRank = 6, 0.047330, 0.171570, 0.372720, 0.650780, 1.005750, 1.437630, 1.946410, 2.532110
NpcRank = 7, 0.064790, 0.234860, 0.510210, 0.890850, 1.376770, 1.967970, 2.664450, 3.466210
NpcRank = 8, 0.088690, 0.321500, 0.698430, 1.219480, 1.884660, 2.693950, 3.647360, 4.744900
NpcRank = 9, 0.121410, 0.440100, 0.956080, 1.669350, 2.579900, 3.687750, 4.992870, 6.495290
NpcRank = 10, 0.166190, 0.602450, 1.308780, 2.285170, 3.531630, 5.048160, 6.834750, 8.891400
NpcRank = 11, 0.227500, 0.824700, 1.791590, 3.128170, 4.834450, 6.910420, 9.356080, 12.171400
NpcRank = 12, 0.311430, 1.128930, 2.452510, 4.282160, 6.617880, 9.459670, 12.807500, 16.661400
NpcRank = 13, 0.426320, 1.545400, 3.357240, 5.861840, 9.059210, 12.949300, 17.532200, 22.807899
NpcRank = 14, 0.583580, 2.115490, 4.595720, 8.024280, 12.401100, 17.726299, 23.999800, 31.221701
NpcRank = 15, 0.798870, 2.895900, 6.291090, 10.984400, 16.975901, 24.265600, 32.853401, 42.739399
NpcRank = 16, 1.093570, 3.964190, 8.611870, 15.036500, 23.238300, 33.217201, 44.973000, 58.506001
NpcRank = 17, 1.496990, 5.426580, 11.788700, 20.583500, 31.811001, 45.471001, 61.563599, 80.088799
NpcRank = 18, 2.049230, 7.428450, 16.137600, 28.176800, 43.546001, 62.245201, 84.274399
NpcRank = 19, 2.805190, 10.168800, 22.090799, 38.571301, 59.610199, 85.207497
NpcRank = 20, 3.840020
NpcRank = 21, 5.256610
NpcRank = 22, 7.195770
NpcRank = 23, 9.850290
NpcRank = 24, 13.484000
NpcRank = 25, 18.458300

My question here is..... can i add another NpcRank here and make it to a higher level?

for example:

NpcRank = 26, 28.478239 ; getting the number from (Diff2Money = 28.478239, 93597)

Sorry about the length of the post but i wanted to explain myself clearly

Post Mon Sep 27, 2004 6:02 pm

I'll try to answer as much as I can, even if Master Fjord, the lord of missions, would answer better than me

Diff2Money = 0.480490, 4792

Okay, so the second number is the payoff, which you already knew. Now the1st one is the toughness, as stated in MBases.ini. As you can see there, Malta got a X level, well it'll refer there. the payoff is then set from here and I think that the level is according to the payoff, but not sure.

Sorry I can't say more for now.... I'll explain the rest tomorrow morning (ET)

Post Mon Sep 27, 2004 6:14 pm

thx for the reply m8

mission_type = DestroyMission, 0.000000 , 0.112387, 30

lets take this line in the Mbases.ini file.

what does the bold number mean?
I know the 2 numbers after it define the rank and the percentage that the faction has when offering missions - 30%.

Post Mon Sep 27, 2004 9:16 pm

Ahoy.
@FF: lol, tnx

@Phoenix:
you prolly bumped into the most complicated topics of FL modding, the diffclass - system. You have things in several files that work together.
I will try to explain it as understandable as i can.

I will start from the npcship side.

In npcship.ini, you define the ranks for the ships. these are the d1, d2, d3, ... entries.

NpcRankToDiff.ini will "convert" the ranks to the diff value, depending on how many of these ships will be spawned in a mission.
an example:
NpcRank = 17, 1.496990, 5.426580, 11.788700, 20.583500, 31.811001, 45.471001, 61.563599, 80.088799

the rank is 17. one ship equals 1.496990 diff, 2 ships 5.426580, .. 8 ships 80.088799, you get the idea

consider that there are several waves in a mission, 1 to 3 if i remember right.
the diff values of the waves are added to the total diff of the mission.

this is where Diff2Money comes into play.
you have your mission, lets say with 67 total diff (just an example).
now look up the cash value for this in Diff2Money . the values inbetween the given numbers are interpolated.

The max diff for a mission is 100, it wont go beyong this.
the max rank of a ship has no boundaries, its up to you how you define them. Chips made NPCs with diffclass beyond 25 if i remember right.

to the mbases question:
mission_type = DestroyMission, 0.000000 , 0.112387, 30
the 0.000 is the minimum diff missionthat will appear on this base. the 0.112387 is the max diff. the 30 is the percentage that the mission is from this faction (you can set several different ones - like on manhattan)

Reworking the diffclass system of FL is not an easy thing. you have to take many aspects into consideration.

I hope this wasnt too complicated. If somethnig is still unclear, just ask.

Fjord

---------------------------------
Excelcia Mod Leading Developer

Post Mon Sep 27, 2004 10:42 pm

Thankyou for jumping in Fjord - hope you feel like staying

Post Mon Sep 27, 2004 10:52 pm

sure Chips

I gonna start work on a completely new FL TC soon (will make a nice news post for it soon). I need some new modders to build up a team and this is a good way to catch them

Fjord

---------------------------------
Excelcia Mod Leading Developer

Post Tue Sep 28, 2004 1:36 am

Hey chips i know you have the brains for this question so how about it

can you or anyone out there make a tool so if we run it it will open up the files needed and we can use a windows based front like with fled etc etc just mainly for the lvl section and ship class so if we wanted to change it from 3 ships lvl 5 attacking us just by changing a sliding switch or somthing it would be 6 ships at lvl 10 or even 25 etc etc attacking us now that would be a great tool for the noobs at modding

question 2
this is a bit harder

Same sort of tool to make it so we can add a new planet or base in any system with a faction of our choice and what we want to call the planet/base stuff sold there and weather we use a moor or not

the idea of a tool is so if anyone wanted to add something somewhere it can be done via a windows bases interface same as fled or something like that or is there one out there as i have searched high and low and came up mt handed
now thats a challenge for you guys thx in advance dazzla99 EVO lover

I never tell the truth but that was a lie

Post Tue Sep 28, 2004 8:53 am

Howdy Dazzla

Fraid i am no programmer - just a regular guy who read alot about modding.

Freelancer explorer can do most of what you ask, but not all. The missions part is a hand editing part. If we removed the need for actually understanding how to make a mod - then the mod community would die due to everyone building their own, and not playing anyone elses! We will help people learn how to mod within reason - but being able to do things will take effort on the peoples part! Point and click devices are not a way forward for modding. They can help in areas - but its not a solution to everyones dreams!

Post Wed Sep 29, 2004 12:28 am

Ok m8 thank you

ps HOWDY

I never tell the truth but that was a lie

Return to Freelancer Modding for Beginners Forum