Aktuellt datum och tid: 27 maj 2020, 12:22

Alla tidsangivelser är UTC + 1 timme




Ny tråd Svara på tråd  [ 4 inlägg ] 
Författare Meddelande
 Inläggsrubrik: LeoFFBLoadIni
InläggPostat: 12 jan 2012, 21:54 
Offline
Formel 3000 förare
Formel 3000 förare
Användarvisningsbild

Blev medlem: 08 maj 2010, 17:54
Inlägg: 1234
Ort: Sundbyberg
Har suttit o knepat o knåpat lite - grävt i mina gamla C++ kunskaper och har fått till en plugin som laddar en LeoFFB.ini beroende vilken bil man kör - och detta utan att behöva gå ur och in. Ny LeoFFB laddas efter du bytt bil.

Jag kallar det hela LeoFFBLoadIni

Skulle vara tacksam om någon kan se om en sådan här plugin kan ha något överlevnadsvärde. Vara med och betatesta - lägga input - skapa LeoFFB-collections.

Laddade upp det hela till NoGripRacing.

README:
Kod:
=======================================================================
LeoFFBLoadIniPlugin                                  First Public  v0.3
=======================================================================
Author: zaphman                                              2012-01-15

An rFactor plugin used to automatically place/load a specific
'LeoFFB.ini' for the cosen car, if one exists, as 'Plugins/LeoFFB.ini'
prior of entering the asphalt - meaning no more coping/renaming of
files prior of starting the sim.

Installation
============

1. Full Installtion
-------------------

Unpack the supplied ZIP archive in the rFactor installation
directory, which places

a) binary and support files under 'Plugins':

   LeoFFBLoadIniPlugin.ddl   - The plugin itself.
   LeoFFBLoadIni/*           - Some sound files, played when plugin has
                               done its job.

b) a number of my collected 'LeoFFB.ini' files, gathered from
   different locations around Internet, under 'GAMEDATA\VEHILCES', and
   the corresponding m mod subfolder.

   Note that extra mod folders, with a single 'LeoFFB.ini' file, may
   be created, in case you don't have the mod installed:

   GAMEDATA\VEHILCES\55F1
   GAMEDATA\VEHILCES\BMW E90
   GAMEDATA\VEHILCES\BMW320_E21
   GAMEDATA\VEHILCES\EnduranceSeries         (SP2)
   GAMEDATA\VEHILCES\Gallardo GT3
   GAMEDATA\VEHILCES\Hankook_MX5_Cup   
   GAMEDATA\VEHILCES\Megane               
   GAMEDATA\VEHILCES\NAGT   
   GAMEDATA\VEHILCES\PCC_997
   GAMEDATA\VEHILCES\VHR

   Note: These files my be inaccurate according to the latest
   information around and your preferences. You can twaek them as you
   like. If you need to install this plugin again, remember to to make
   a partial installation to ensure to not overwrite your own tweaks.


2. Partial Installation
-----------------------

In case you already have the LeoFFBLoadPlugin installed, and don't
want to overwrite your installed collection of 'LeoFFB.ini' files,
just open the ZIP archive and only extract/drag the requiered
folder/file to the corresponding place inside the rFactor
installation.

Manage of 'LeoFFB.ini' files
============================

Ensure to Place the default 'LeoFFB.ini' (the one supplied from the
LeoFFB developer - or your own tweaked one) in
'<rfactor>\GAMEDATA\VEHICLES'. This will assure the default
configuration is used for mods/cars where there is no specific
configuration available.

Your specific 'LeoFFB.ini' files then goes inside the corresponding
mod folder, under '<rfactor>GAMEDATA\VEHICLES\<MOD>'.  If a mod has
more than one car/class and the 'LeoFFB.ini' is different among these,
place the 'LeoFFB.ini' in the car/class subfolder inside the <MOD>
folder.

With this approach, my hope is it will be very natural to add LeoFFB
support for any mod available - a new LeoFFB is added per mod.

How Does it Work
================

When entering a session, and scoring begins, LeoFFBLoadIniPlugin kicks
in and tries to find the car's VEH file(s) under
'<rfactor>\GAMEDATA\VEHILCES\', by looking up the latest information
in the player's PLR file. When the corresponding VEH file is found,
this file's folder is used as base to find a corresponding
'LeoFFB.ini' file. This is done by searching from the folder itself
and upwards in the folder hierarchy. The first 'LeoFFB.ini' found is
then copied as '<rfactor>\Plugins\LeoFFB.ini' - the more specific
LeoFFB needed, the closer to the VEH file it should be placed.

A voice 'LeoFFB configuration loaded' should be heard when the plugin
has done its work. If there where no configuration found (or something
failed), a 'LeoFFB missing' should be heard.

When entering the track (enter realtime), LeoFFB loads (as far as I
can see) the '<rfactor>\Plugins\LeoFFB.ini', which means you should
stay in the garage for a while, before entering the track, to let the
plugin find the correct 'LeoFFB.ini', before LeoFFB tries to grab one.

Logging
=======

To investigate which 'LeoFFB.ini' was engaged, consult the log output
in '<rfactor>\LeoFFBLoadIniPlugin.log'.

Considerations
==============

The existing 'LeoFFB.ini' is overwritten when the first session is
joined (as soon as scoring starts) after start of the sim, and when
the car is changed. i.e. you exit the current session, choose another
car and enters a game session again.

Ensure you are allowed to write files in the 'Plugins' folder. This
could mean you keep your rFactor installation outside of any 'Program
Files' folder. Instead, use 'C:\Games\rFactor'.

TODO
====

* Integrate with Leo's FFB Tuner (LFT), and be able to read exported
  files from this tool.

* I really would like to extract all needed settings from the
  underlying data files and also from the current garage settings in
  use, to generate an 'LeoFFB.ini' dynamically.

  My knowledge of rFactor internlas is a bit out of my scope
  unfortunately.

Legal
=====

This software is released AS-IS.

_________________
/Mattias Norling
Team Backmarkers
Gears: Windows 10, Asus Z97 Pro Gamer, EVGA SuperNOVA G2 750W, i5-4690K OC @4500Mhz, 16GB RAM, Asus GTX 980 TI STRIX, 3x27" Asus VE278Q, Thrustmaster TX wheel base, 599XX EVO 30 Alcantara rim, Ferrari F1 Italia rim, Fanatec CSP v3 pedals, Fanatec SQ 1.5 shifter, TH8RS e-brake, G27 with Leobodnar USB adapter and SRW-S1 as buttonboxes Passmark: 4717.5


Senast redigerad av zaphman 19 jan 2012, 21:25, redigerad totalt 3 gånger.

Upp
 Profil  
 
 Inläggsrubrik: Re: LeoFFBLoadIni
InläggPostat: 12 jan 2012, 23:39 
Offline
Formel 3000 förare
Formel 3000 förare
Användarvisningsbild

Blev medlem: 07 aug 2006, 11:50
Inlägg: 1149
Ort: Stockholm
Grymt! Alltid kul att knåpa lite. Låter användbart.

Game Stock Car har nån RealFeel/Leo kombo, har du testat det?

_________________
Fredric M
LifeOn2 FFB System
SimShiftLight Android App


Upp
 Profil  
 
 Inläggsrubrik: Re: LeoFFBLoadIni
InläggPostat: 13 jan 2012, 01:45 
Offline
Formel 3000 förare
Formel 3000 förare
Användarvisningsbild

Blev medlem: 08 maj 2010, 17:54
Inlägg: 1234
Ort: Sundbyberg
Pax skrev:
Grymt! Alltid kul att knåpa lite. Låter användbart.

Game Stock Car har nån RealFeel/Leo kombo, har du testat det?


Försökte söka - hittade inte något. Får kolla vidare. Jag har försökt se om någon varit inne i samma tankebanor. Inte hittat någon faktiskt. Det finns ju verktyg för att underhålla själva LeoFFB.ini, men inte något som applicerar valet annant än att man gör det innan man går in i spelet - måste alltså veta vilken bil man tänker köra innan.

Får se hur stabilt detta blir - fungerar här hemma.. men fungerar det för andra tro :|

_________________
/Mattias Norling
Team Backmarkers
Gears: Windows 10, Asus Z97 Pro Gamer, EVGA SuperNOVA G2 750W, i5-4690K OC @4500Mhz, 16GB RAM, Asus GTX 980 TI STRIX, 3x27" Asus VE278Q, Thrustmaster TX wheel base, 599XX EVO 30 Alcantara rim, Ferrari F1 Italia rim, Fanatec CSP v3 pedals, Fanatec SQ 1.5 shifter, TH8RS e-brake, G27 with Leobodnar USB adapter and SRW-S1 as buttonboxes Passmark: 4717.5


Upp
 Profil  
 
 Inläggsrubrik: Re: LeoFFBLoadIni
InläggPostat: 15 jan 2012, 13:59 
Offline
Formel 3000 förare
Formel 3000 förare
Användarvisningsbild

Blev medlem: 08 maj 2010, 17:54
Inlägg: 1234
Ort: Sundbyberg
Hittade vad jag tror du refererade till - Leo's FFB Tuner (v1.0.1). Gör en googling så får ni träff.

_________________
/Mattias Norling
Team Backmarkers
Gears: Windows 10, Asus Z97 Pro Gamer, EVGA SuperNOVA G2 750W, i5-4690K OC @4500Mhz, 16GB RAM, Asus GTX 980 TI STRIX, 3x27" Asus VE278Q, Thrustmaster TX wheel base, 599XX EVO 30 Alcantara rim, Ferrari F1 Italia rim, Fanatec CSP v3 pedals, Fanatec SQ 1.5 shifter, TH8RS e-brake, G27 with Leobodnar USB adapter and SRW-S1 as buttonboxes Passmark: 4717.5


Upp
 Profil  
 
Visa inlägg nyare än:  Sortera efter  
Ny tråd Svara på tråd  [ 4 inlägg ] 

Alla tidsangivelser är UTC + 1 timme


Vilka är online

Användare som besöker denna kategori: Google [Bot] och 3 gäster


Du kan inte skapa nya trådar i denna kategori
Du kan inte svara på trådar i denna kategori
Du kan inte redigera dina inlägg i denna kategori
Du kan inte ta bort dina inlägg i denna kategori
Du kan inte bifoga filer i denna kategori

Sök efter:
Hoppa till:  
SSR Theme By Erix © 2007-2008
SSR Theme Based off Revival Theme Based off SubLite By Echo © 2007-2008 Echo
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Swedish translation by Peetra & phpBB Sweden © 2006-2008