Jump to content
AVIC411.com

I would like to add Fuel CaLculator to my mod


Recommended Posts

that last error is a tough one. I can't seem to find where that code is being called out in any other ui file. Anyway too tired to continue examdiff. will try again tomorrow.

Check these UI files out. I believe that these are the ones that are referenced:

 

ADD:

half_patch_var.ui

half_patch.ui

half_patch_800_480.ui

 

 

Reference (add scripts relating to):

START.UI

place.ui

model_variables.ui

 

There might be a few others as well, but these are DEFINATELY referenced. Make sure that you add the calculations to the 'place.ui' folder

 

 

Through a lot of trial and error, I got it working perfectly in Diaftias mod

Link to post
Share on other sites
  • Replies 42
  • Created
  • Last Reply

Top Posters In This Topic

that last error is a tough one. I can't seem to find where that code is being called out in any other ui file. Anyway too tired to continue examdiff. will try again tomorrow.

Check these UI files out. I believe that these are the ones that are referenced:

 

ADD:

half_patch_var.ui

half_patch.ui

half_patch_800_480.ui

 

 

Reference (add scripts relating to):

START.UI

place.ui

model_variables.ui

 

There might be a few others as well, but these are DEFINATELY referenced. Make sure that you add the calculations to the 'place.ui' folder

 

 

Through a lot of trial and error, I got it working perfectly in Diaftias mod

 

What scrips would be add to place.ui?

I have all the patches in the proper ui files.....

Thanks

Jimbo

Link to post
Share on other sites

 

What scrips would be add to place.ui?

I have all the patches in the proper ui files.....

Thanks

Jimbo

starting out, you will have to replace the header with this









 

then add all this to the bottom. This is your mathematical calculations

;Common Multiplication and Division Function












 

THEN you will have to add this bmp:

z_sliderbar_bg_long.bmp

Link to post
Share on other sites
If that does not do it, then you are missing code in one of the other ui files. Search for anything with reference to 'half_patch' or 'fuel calculator'

 

Thanks ABB1,

I went back to your mod and copied the top lines and copied everything at the bottom of place.ui starting with the divisions scrip and now everything works.

Thanks

Jimbo

Link to post
Share on other sites
If that does not do it, then you are missing code in one of the other ui files. Search for anything with reference to 'half_patch' or 'fuel calculator'

 

Thanks ABB1,

I went back to your mod and copied the top lines and copied everything at the bottom of place.ui starting with the divisions scrip and now everything works.

Thanks

Jimbo

NP, your welcome :)! Glad that you finally got it working!

Link to post
Share on other sites
ok found that error, but now i am getting another error FFUIERROR: Unknown object identifier Identifier=[d_UmnDel1] Script"d_Delen" command 1. Anyway as an update add this into the place.ui file at the end to get rid of the last error i was getting. Now on to finding the next error:

;Common Multiplication and Division Function

run d_UmnDelDone

dUmnDel1.set $1

dUmnDel2.set $2

dUmnDel3.set $3

dUmnDel4.set $1

1 run d_UmnogInit

 

decval "dUmnDel2" 1

incval "dUmnDel5" 1

1 runif dUmnDel2 0 'run dUmnDel3'

1 else_run 'incval "dUmnDel1" dUmnDel4, run d_UmnogRepeat'

 

runif dUmnDel5 1000 'dUmnDel5.set 0, 30 run d_UmnogInit'

else_run '1 run d_UmnogInit'

 

run d_UmnDelDone

dUmnDel1.set -1

dUmnDel2.set $1

dUmnDel3.set $3

dUmnDel4.set $2

1 run d_DelenInit

 

incval "dUmnDel1" 1

incval "dUmnDel5" 1

1 runif dUmnDel2 <= 0 'run dUmnDel3'

1 else_run 'decval "dUmnDel2" dUmnDel4, run d_DelenRepeat'

 

runif dUmnDel5 1000 'dUmnDel5.set 0, 30 run d_DelenInit'

else_run '1 run d_DelenInit'

 

term d_UmnogInit

term d_UmnogRepeat

term d_DelenInit

term d_DelenRepeat

dUmnDel5.set 0

Hey i was close. i was only missing the top header part of the place.ui file.

Oh well you beat me to it jimbo, good team work. Mine works now as well thanks for your help abb. do i still need that Restart.exe file in the extension folder if i am not using the map changer?

Link to post
Share on other sites
ok found that error, but now i am getting another error FFUIERROR: Unknown object identifier Identifier=[d_UmnDel1] Script"d_Delen" command 1. Anyway as an update add this into the place.ui file at the end to get rid of the last error i was getting. Now on to finding the next error:

;Common Multiplication and Division Function

run d_UmnDelDone

dUmnDel1.set $1

dUmnDel2.set $2

dUmnDel3.set $3

dUmnDel4.set $1

1 run d_UmnogInit

 

decval "dUmnDel2" 1

incval "dUmnDel5" 1

1 runif dUmnDel2 0 'run dUmnDel3'

1 else_run 'incval "dUmnDel1" dUmnDel4, run d_UmnogRepeat'

 

runif dUmnDel5 1000 'dUmnDel5.set 0, 30 run d_UmnogInit'

else_run '1 run d_UmnogInit'

 

run d_UmnDelDone

dUmnDel1.set -1

dUmnDel2.set $1

dUmnDel3.set $3

dUmnDel4.set $2

1 run d_DelenInit

 

incval "dUmnDel1" 1

incval "dUmnDel5" 1

1 runif dUmnDel2 <= 0 'run dUmnDel3'

1 else_run 'decval "dUmnDel2" dUmnDel4, run d_DelenRepeat'

 

runif dUmnDel5 1000 'dUmnDel5.set 0, 30 run d_DelenInit'

else_run '1 run d_DelenInit'

 

term d_UmnogInit

term d_UmnogRepeat

term d_DelenInit

term d_DelenRepeat

dUmnDel5.set 0

Hey i was close. i was only missing the top header part of the place.ui file.

Oh well you beat me to it jimbo, good team work. Mine works now as well thanks for your help abb. do i still need that Restart.exe file in the extension folder if i am not using the map changer?

 

I don't believe so. I think the restart.exe is for the map changer.

Jimbo

Link to post
Share on other sites
Would you mind posting the steps/code needed to do this mod? It would be nice to have it all on one page.

 

Thanks! :D

As Abb1 mentioned earlier, it took lots of work and time to make this work. What I did was I opened another data file that had the fuel calculation and map changer and did a search on all the scrips and bmp files and copied them over. This is how to make changes etc.

Read the comment from ABB1 about which ui files to search for. I will try to put steps together but I may miss a step or so.

Let me know if you need help.

Jimbo

Link to post
Share on other sites
Would you mind posting the steps/code needed to do this mod? It would be nice to have it all on one page.

Thanks! :D

Here you go, I know how hard it is to read through the entire thread to piece together the mod, so hope this makes it easy for everyone:

1. You have to add the extension folder inside IGO folder in APL2 in the AVIC. There will be a FuelCalc Folder inside of the folder and you can download it from Abb1's mod.

There are three files inside

1. FuelCalc.ui; FuelCalc_800_480.ui and FuelCalc_var.ui.(I got this off the forum)

 

2. Then copy the half_patch_800_480.ui to 800_480/ui folder from Abb1 Mod

 

3. Then copy the half_patch.ui and half_patch_var.ui to common/ui folder.

 

4. Then copy over the Bmp File (bmp="z_sliderbar_bg_long.bmp" and "IDT_onmap_fuelcalc.bmp") also from ABB1 mod.

 

5. Then copy the script line (FuelCalc) to 800_480/ui/navigationmap.ui:

;FUEL CALC

.

 

6. Then Add these lines to the model_variables.ui:

;Half Patches

import "ui_pioneer/common/ui/half_patch_var.ui" and .

 

7. Then Add these lines to the top of the start 800_480 file:

;Half Patches

import "ui_pioneer/800_480/ui/half_patch_800_480.ui"

 

8. Then Add these lines to the end of the start.ui file:

;Half Patches

import "ui_pioneer/common/ui/half_patch.ui"

 

9. Then replace the header of the place.ui file with this:

 

10. Then add this to the bottom of the place.ui file:

;Common Multiplication and Division Function

run d_UmnDelDone

dUmnDel1.set $1

dUmnDel2.set $2

dUmnDel3.set $3

dUmnDel4.set $1

1 run d_UmnogInit

 

decval "dUmnDel2" 1

incval "dUmnDel5" 1

1 runif dUmnDel2 0 'run dUmnDel3'

1 else_run 'incval "dUmnDel1" dUmnDel4, run d_UmnogRepeat'

 

runif dUmnDel5 1000 'dUmnDel5.set 0, 30 run d_UmnogInit'

else_run '1 run d_UmnogInit'

 

run d_UmnDelDone

dUmnDel1.set -1

dUmnDel2.set $1

dUmnDel3.set $3

dUmnDel4.set $2

1 run d_DelenInit

 

incval "dUmnDel1" 1

incval "dUmnDel5" 1

1 runif dUmnDel2 <= 0 'run dUmnDel3'

1 else_run 'decval "dUmnDel2" dUmnDel4, run d_DelenRepeat'

 

runif dUmnDel5 1000 'dUmnDel5.set 0, 30 run d_DelenInit'

else_run '1 run d_DelenInit'

 

term d_UmnogInit

term d_UmnogRepeat

term d_DelenInit

term d_DelenRepeat

dUmnDel5.set 0

Link to post
Share on other sites
Would you mind posting the steps/code needed to do this mod? It would be nice to have it all on one page.

Thanks! :D

Here you go, I know how hard it is to read through the entire thread to piece together the mod, so hope this makes it easy for everyone:

1. You have to add the extension folder inside IGO folder in APL2 in the AVIC. There will be a FuelCalc Folder inside of the folder and you can download it from Abb1's mod.

There are three files inside

1. FuelCalc.ui; FuelCalc_800_480.ui and FuelCalc_var.ui.(I got this off the forum)

 

2. Then copy the half_patch_800_480.ui to 800_480/ui folder from Abb1 Mod

 

3. Then copy the half_patch.ui and half_patch_var.ui to common/ui folder.

 

4. Then copy over the Bmp File (bmp="z_sliderbar_bg_long.bmp" and "IDT_onmap_fuelcalc.bmp") also from ABB1 mod.

 

5. Then copy the script line (FuelCalc) to 800_480/ui/navigationmap.ui:

;FUEL CALC

.

 

6. Then Add these lines to the model_variables.ui:

;Half Patches

import "ui_pioneer/common/ui/half_patch_var.ui" and .

 

7. Then Add these lines to the top of the start 800_480 file:

;Half Patches

import "ui_pioneer/800_480/ui/half_patch_800_480.ui"

 

8. Then Add these lines to the end of the start.ui file:

;Half Patches

import "ui_pioneer/common/ui/half_patch.ui"

 

9. Then replace the header of the place.ui file with this:

 

10. Then add this to the bottom of the place.ui file:

;Common Multiplication and Division Function

run d_UmnDelDone

dUmnDel1.set $1

dUmnDel2.set $2

dUmnDel3.set $3

dUmnDel4.set $1

1 run d_UmnogInit

 

decval "dUmnDel2" 1

incval "dUmnDel5" 1

1 runif dUmnDel2 0 'run dUmnDel3'

1 else_run 'incval "dUmnDel1" dUmnDel4, run d_UmnogRepeat'

 

runif dUmnDel5 1000 'dUmnDel5.set 0, 30 run d_UmnogInit'

else_run '1 run d_UmnogInit'

 

run d_UmnDelDone

dUmnDel1.set -1

dUmnDel2.set $1

dUmnDel3.set $3

dUmnDel4.set $2

1 run d_DelenInit

 

incval "dUmnDel1" 1

incval "dUmnDel5" 1

1 runif dUmnDel2 <= 0 'run dUmnDel3'

1 else_run 'decval "dUmnDel2" dUmnDel4, run d_DelenRepeat'

 

runif dUmnDel5 1000 'dUmnDel5.set 0, 30 run d_DelenInit'

else_run '1 run d_DelenInit'

 

term d_UmnogInit

term d_UmnogRepeat

term d_DelenInit

term d_DelenRepeat

dUmnDel5.set 0

 

Great Job!

I don't think I would have done this well!

Jimbo

Link to post
Share on other sites
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...



×
×
  • Create New...