Skip to content

Commit

Permalink
Fixed number of gears value. Fixed multimonitor/virtual desktop issue…
Browse files Browse the repository at this point in the history
… (preview image was not drawn in the correct place. Maybe it now works. Cannot test this myself). Fixed bug in preview image generation if FixUp.VSyncActive=0 was set. Fixed bug showing "car1/car2/car3/etc" name if the RBRCIT installed car was actually one of the original car models (ie. without NGP description file). Fixed a bug if there was a dot in a car model name (the plugin showed the car name wrong). Added new options: ScreenshotFileType=PNG | BMP. ScreenshotAPIType=0 | 1 (0=DirectX framebuffer data in a screenshot, 1=GDI screen data in a screenshot). Some Win7 PCs seemed to have issues with DX screenshots (wrong background colors). Added NGPCarMenu\CustomCarSpecs.ini file to support original car models and any other non-NGP related custom car model.
  • Loading branch information
mika-n committed May 18, 2020
1 parent 240285b commit 7f3e27a
Show file tree
Hide file tree
Showing 12 changed files with 852 additions and 250 deletions.
14 changes: 11 additions & 3 deletions src/CreateReleaseZip.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
@echo off

rem
rem Quick and dirty "tool" to package a new NGPCarMenu_<versionTag>.zip release file.
rem Remember to do "clean - rebuild all" with Release build in VC++ before packaging the release ZIP file.
rem


SET APPNAME=NGPCarMenu
SET VERSIONTAG=%~1
SET RELEASE_FOLDER=Release\VER_%VERSIONTAG%
Expand Down Expand Up @@ -40,16 +46,18 @@ mkdir "%RELEASE_FOLDER%\Plugins\%APPNAME%\"
mkdir "%RELEASE_FOLDER%\Plugins\%APPNAME%\preview\1920x1080\"
mkdir "%RELEASE_FOLDER%\Plugins\%APPNAME%\preview\1366x768\"

rem Dummy files because 7Zip tool would ignore empty folders
type NUL > "%RELEASE_FOLDER%\Plugins\%APPNAME%\preview\1920x1080\carImages.txt"
type NUL > "%RELEASE_FOLDER%\Plugins\%APPNAME%\preview\1366x768\carImages.txt"

copy "Release\%APPNAME%.dll" "%RELEASE_FOLDER%\Plugins\"
copy "%APPNAME%.ini" "%RELEASE_FOLDER%\Plugins\"
copy "%APPNAME%.rpl" "%RELEASE_FOLDER%\Replays\"
copy "CustomCarSpecs.ini" "%RELEASE_FOLDER%\Plugins\%APPNAME%\"
copy "..\LicenseText.txt" "%RELEASE_FOLDER%\Plugins\%APPNAME%\"
copy "..\ReadMe.md" "%RELEASE_FOLDER%\Plugins\%APPNAME%\"
copy "..\ReadMe.md" "%RELEASE_FOLDER%\Plugins\%APPNAME%\ReadMe.txt"

type NUL > "%RELEASE_FOLDER%\Plugins\%APPNAME%\preview\1920x1080\carImages.txt"
type NUL > "%RELEASE_FOLDER%\Plugins\%APPNAME%\preview\1366x768\carImages.txt"

PUSHD "%RELEASE_FOLDER%\"
del "..\%RELEASE_PKG%"
"%ZIP_TOOL%" a -r -tzip "..\%RELEASE_PKG%" *.*
Expand Down
82 changes: 82 additions & 0 deletions src/CustomCarSpecs.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
;
; NGPCarMenu - Car specs of the original RBR cars.
;
; If RBRCIT/NGP is used to install original car models then Physics\<carFolder>\ folder doesn't have a model description file.
; In that case this plugin use this file to look for custom spec information for those cars (or any other custom non-NGP car model).
;
; By default here are the origial RBR cars, but you can add any custom car here if NGP model doesn't have a car spec information for the car.
; Well, to be exact. NGP carList.ini file does have this information for the original cars EXCEPT the cat FIA Category information. This file adds the FIA category information,
; but at the same time this can be used to add this information for other non-NGP custom car model names.
;

[Car_1]
name=Citroen Xsara
cat=WRC 2.0
year=2004
weight=1400
power=300@5500
trans=4WD


[Car_2]
name=Hyundai Accent
cat=WRC 2.0
year=2004
weight=1400
power=300@5300
trans=4WD


[Car_3]
name=MG ZR Super 1600
cat=Super 1600
year=2004
weight=1150
power=215@8450
trans=2WD


[Car_4]
name=Mitsubishi Lancer Evo VII
cat=WRC 2.0
year=2004
weight=1400
power=300@5500
trans=4WD


[Car_5]
name=Peugeot 206
cat=WRC 2.0
year=2004
weight=1400
power=300@5250
trans=4WD


[Car_6]
name=Subaru Impreza 2003
cat=WRC 2.0
year=2004
weight=1400
power=300@5500
trans=4WD


[Car_7]
name=Toyota Corolla
cat=WRC 2.0
year=2004
weight=1400
power=300@5250
trans=4WD


[Car_8]
name=Subaru Impreza 2000
cat=WRC 2.0
year=2004
weight=1400
power=280@6400
trans=4WD

Loading

0 comments on commit 7f3e27a

Please sign in to comment.