Giter Club home page Giter Club logo

cpupdate's Introduction

cpupdate - Portable Courseplay Update Package

For Farming Simulator 19

A script for Farming Simulator 22 can be found here!

What does it do?

This package contains portable editions of Git and 7-Zip as well as a Batch script that

  • checks Coursplay´s Github repository for the latest version,
  • installs Courseplay (if it wasn´t formerly installed) to your FS17 mod folder,
  • backups your current Courseplay in case of an update,
  • updates your current Courseplay to the latest version from the Github repository.

Who needs this?

Every Farming Simulator 2017 enthusiast should have a look at the famous mod Courseplay. If you are using Courseplay and want to be sure to always use the latest version, you should update your installation before playing, as there are frequent updates. This can be a quite complicated process if you want to be sure to have a backup of former versions.

How to use?

  1. Download the latest version of cpupdate_installer.exe.
  2. Start the self-extracting installer archive 'cpupdate_installer.exe' and extract it to a folder of your choice. Don´t use your Program Files folder because the script has to write some temporary files in it´s installation folder.
  3. Find cpupdate_portable.bat in the folder you extracted in the former step and send a link to your desktop.
  4. Start cpupdate_portable.bat for an instant 1-click update.

Sceenshot (fresh install)

(Fresh installation)

Sceenshot (update)

(Update installation)

How to restore an older version?

With every Courseplay update cpupdate creates a backup of your former version. You can find it under your cpupdate directory (see step 2. above) in the subfolder .\cpbackup. Just extract the content to <your Farming Simulator mod folder>\ZZZ_Courseplay\. <your Farming Simulator mod folder> is usually under your Documents folder - my games - FarmingSimulator2017 - mods.

How get rid of it?

Just delete the directory you extracted the installer to (see step 2. above). Attention! You will loose your backup files, too.

Expert usage

If you have installed Git and 7-Zip on your computer, you can download only the script file cpupdate_portable.bat, open it in an text editor and set the path to Git and 7-Zip suiting your needs (Lines 45 - 46)

You can also set the default deployment mode from ZIPFILE to DIRECTORY if you like (Line 32 - 33).

In lines 39 - 40 you can toggle between "auto-close-behaviour" and "hit-a-key-before-closing-the-window-because-i-want-to-see-what-happened-mode".

What´s fresh?

Version 1.6 (31.1.2019)

  • Farming Simulator version 2017 or 2019 (default) - edit cpupdate_portable.bat and find set fsversion

Version 1.4 (16.12.2016)

  • Bugfix: "Hit any key to close window"
  • Support for custom mod folder (from gamesettings.xml)
  • Colored text (Win10 only)

Version 1.1 (5.12.2016)

  • Now capable of creating a zipped file in your mod directory

Anything else?

If you like this, star it on GitHub!

cpupdate's People

Contributors

elpatron68 avatar gec100 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cpupdate's Issues

auger wagons

if you can look into making the auger wagon work like the courseplay in fs17

Can't get it to work

I must be missing something because it was working for 2017, freshly downloaded the new version and I get this.

capture

I'm sure I am just missing something, but can you tell me what it might be?

Thanks for a great script, its life-changing during this beta phase.

Not updating

The update is failing for me, possibly because I have a "space" in my username and the directory locations are failing. By the looks of it the backup is the issue.

untitled

attn dev cpupdate needs updating for fs 19

anyone looking for the fix before the dev fixes it the solution is to open the cpupdate_portable.bat in notepad and change this:

:: Setting Mod directory
SETLOCAL
for /f "delims=" %%i in ('cscript %TEMP%\moddir.vbs "%UserDocs%\My Games\FarmingSimulator2017\gameSettings.xml" //Nologo') do set moddir=%%i

rem Setting Courseplay mod folder or file
if defined moddir (
set _dest=%moddir%\ZZZ_courseplay
) else (
set _dest=%UserDocs%\my games\FarmingSimulator2017\mods\ZZZ_courseplay

to :

:: Setting Mod directory
SETLOCAL
for /f "delims=" %%i in ('cscript %TEMP%\moddir.vbs "%UserDocs%\My Games\FarmingSimulator2019\gameSettings.xml" //Nologo') do set moddir=%%i

rem Setting Courseplay mod folder or file
if defined moddir (
set _dest=%moddir%\ZZZ_courseplay
) else (
set _dest=%UserDocs%\my games\FarmingSimulator2019\mods\ZZZ_courseplay

CPupdate für LS22

Moin nach Kiel.
kannst Du Dein Script auch für LS22 anpassen?
Ich habe es für LS19 bis zum letzten Tag genutzt ;-)

Gruß aus SH

Cp new map

Moin, folgendes auf der neuen Gemeinde rade (modhub) funzt der courseplay ( großer gelber Pfeil beim einstellen des Helfers nicht mehr... ) wäre jemand bereit mir zu helfen dieses Problem zu lösen?

Small Typo

you have declared autoclose with "NO", when you are checking for "No". So program always closes at the end.

Otherwise, nice little program :) 👍

Creating to zip?

Hi Elpatron68!

Great add-on. Makes the update process a lot easier! 👍

However, I was wondering if you will be able to create the mod folder as a zip file in the future?

Regards,
DaneViking

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.