diff --git a/.gitignore b/.gitignore
index 32ddd07..4e8fbe5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -184,3 +184,4 @@ UpgradeLog*.htm
# Microsoft Fakes
FakesAssemblies/
+/.vs
diff --git a/GameData/KerbalSports/KerbalSports.dll b/GameData/KerbalSports/KerbalSports.dll
index a219434..daddb3d 100644
Binary files a/GameData/KerbalSports/KerbalSports.dll and b/GameData/KerbalSports/KerbalSports.dll differ
diff --git a/GameData/KerbalSports/KerbalSports.version b/GameData/KerbalSports/KerbalSports.version
index 652334b..cdeea03 100644
--- a/GameData/KerbalSports/KerbalSports.version
+++ b/GameData/KerbalSports/KerbalSports.version
@@ -1,32 +1,31 @@
{
"NAME":"KerbalSports",
- "URL":"https://raw.githubusercontent.com/jrossignol/KerbalSports/master/GameData/KerbalSports/KerbalSports.version",
- "DOWNLOAD":"https://github.com/jrossignol/KerbalSports/releases",
- "CHANGE_LOG_URL":"https://raw.githubusercontent.com/jrossignol/KerbalSports/1.1.0/CHANGES.txt",
+ "URL":"https://raw.githubusercontent.com/JonnyOThan/KerbalSports/master/GameData/KerbalSports/KerbalSports.version",
+ "DOWNLOAD":"https://github.com/JonnyOThan/KerbalSports/releases",
"GITHUB":{
- "USERNAME":"jrossignol",
+ "USERNAME":"JonnyOThan",
"REPOSITORY":"KerbalSports",
"ALLOW_PRE_RELEASE":true
},
"VERSION":{
"MAJOR":1,
- "MINOR":1,
+ "MINOR":2,
"PATCH":0,
"BUILD":0
},
"KSP_VERSION":{
"MAJOR":1,
- "MINOR":4,
- "PATCH":1
+ "MINOR":12,
+ "PATCH":3
},
"KSP_VERSION_MIN":{
"MAJOR":1,
- "MINOR":4,
- "PATCH":1
+ "MINOR":12,
+ "PATCH":3
},
"KSP_VERSION_MAX":{
"MAJOR":1,
- "MINOR":4,
+ "MINOR":12,
"PATCH":99
}
}
diff --git a/GameData/KerbalSports/locale/fr-fr.cfg b/GameData/KerbalSports/locale/fr-fr.cfg
new file mode 100644
index 0000000..9ea88e6
--- /dev/null
+++ b/GameData/KerbalSports/locale/fr-fr.cfg
@@ -0,0 +1,26 @@
+Localization
+{
+ fr-fr
+ {
+ #loc.kerbalsports.fishing.ctrl-ui = CTRL
+ #loc.kerbalsports.fishing.skill-ui = Habileté
+ #loc.kerbalsports.fishing.cast-msg = Lancez votre ligne en appuyant sue [ESPACE] !
+ #loc.kerbalsports.fishing.got-away = Le poisson s'est échappé, semble-t-il.
+ #loc.kerbalsports.fishing.caught-fish = Bravo! Vous avez attrapé un poisson de <<1>> kg(s)!
+ #loc.kerbalsports.fishing.reward = Récompense:
+
+ #loc.kerbalsports.fishing.fish-type = Type de Poisson
+ #loc.kerbalsports.fishing.biggest-fish = Plus Grand Poisson Attrappé
+ #loc.kerbalsports.fishing.number-of-fish = Poissons Attrappés
+ #loc.kerbalsports.fishing.start-fishing = Commencer la pêche
+
+ #loc.kerbalsports.fishing.fish-type-pond = Étang
+ #loc.kerbalsports.fishing.fish-type-freshwater = Eau Douce
+ #loc.kerbalsports.fishing.fish-type-coastal = Côte
+ #loc.kerbalsports.fishing.fish-type-ocean = Océan
+ #loc.kerbalsports.fishing.fish-type-deep-ocean = Océan Profond
+ #loc.kerbalsports.fishing.fish-type-kraken = Kraken
+
+ #loc.kerbalsports.fishing.tutorial = Bienvenue à la compétition de pêche de Jebediah Kerman! Je suis Gus, et je vais vous montrer comment pêcher. Ne vous inquiétez pas si ça a l'air un peu difficile (bien sûr que c'est difficile, ce n'est pas comme si on faisait une fusée)! En plus, je suis sûr qu'un Kerbal motivé comme vous comprendra rapidement.\n\nD'abord, l'interface. À gauche, la distance de jet - qui montre à quelle distance est votre bouchon. Quand vous avez attrappé un poisson, la marge de manoeuvre dont vous disposez sera également indiquée. À droite, le compteur d'habileté. C'est très simple - il suddit de pêcher plus pour s'améliorer. Une nouvelle barre apparaîtra en bas quand vous aurez attrappé un poisson (on en parlera bientôt).\n\nPour lancer votre ligne, appuyez sur la barre d'ESPACE. Une fois la ligne lancée, gardez une des touches SHIFT appuyées pour rembobiner. Si vous arrivez à attraper un poisson, vous verrez de nouveaux éléments apparaître.\n\nUne fois qu'un poisson a mordu, gardez-le au centre de la barre verte qui se trouvera en bas, en utilisant les touches CTRL (ou Command) droite et gauche. En faisant cela, vous tirez sur la canne. Une fois que vous avez ramené le bâton, utilisez la touche SHIFT pour ramener le poisson vers vous. Répétez ces étapes jusqu'à ce que vous ayez pêché le poisson!\n\nBonne chance, et n'oubliez pas - si vous voulez vous entraîner, allez vour du côté de l'Administration, et essayez dans le bassin (présent uniquement lorsque l'Administration est au niveau 3).
+ }
+}
diff --git a/KerbalSports.netkan b/KerbalSports.netkan
deleted file mode 100644
index cc53739..0000000
--- a/KerbalSports.netkan
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "spec_version": "v1.16",
- "identifier": "KerbalSports",
- "$kref": "#/ckan/github/jrossignol/KerbalSports",
- "name": "Kerbal Sports",
- "abstract": "Kerbal Sports: Jebediah's Fishing Challenge.",
- "license": "CC-BY-NC-SA",
- "release_status": "stable",
- "author": "nightingale",
- "$vref": "#/ckan/ksp-avc",
- "install": [
- {
- "find": "KerbalSports",
- "install_to": "GameData"
- }
- ],
- "resources": {
- "homepage": "http://forum.kerbalspaceprogram.com/index.php?/topic/135728-/",
- "bugtracker": "https://github.com/jrossignol/KerbalSports/issues",
- "license": "https://raw.githubusercontent.com/jrossignol/KerbalSports/master/GameData/KerbalSports/LICENSE.txt"
- }
-}
-
diff --git a/source/KerbalSports/Fishing/FishingDriver.cs b/source/KerbalSports/Fishing/FishingDriver.cs
index 05b0312..07978d2 100644
--- a/source/KerbalSports/Fishing/FishingDriver.cs
+++ b/source/KerbalSports/Fishing/FishingDriver.cs
@@ -632,10 +632,14 @@ void HandleIdleStateGUI()
{
}
+ static FieldInfo x_startTimer_FieldInfo = typeof(KerbalEVA).GetField("startTimer", BindingFlags.Instance | BindingFlags.NonPublic);
+
void SetState(FishingState newState)
{
Debug.Log("set fishing state to " + newState);
+ KerbalEVA eva = evaVessel.GetComponent();
+
// Remove any looping clips
loopingClipName = null;
@@ -652,10 +656,14 @@ void SetState(FishingState newState)
{
NavBallToggle.Instance.panel.Collapse();
}
+
+ x_startTimer_FieldInfo.SetValue(eva, false);
}
// Undo what we did
else if (newState == FishingState.NotFishing)
{
+ x_startTimer_FieldInfo.SetValue(eva, true);
+
// Clear the locks
InputLockManager.RemoveControlLock("Fishing");
@@ -671,7 +679,6 @@ void SetState(FishingState newState)
if (evaVessel != null)
{
// Set the animation back to the idle one
- KerbalEVA eva = evaVessel.GetComponent();
animation.Stop();
animation.Play(eva.Animations.idle.animationName);
@@ -714,7 +721,6 @@ void SetState(FishingState newState)
// Play the idle animation
if (newState == FishingState.Idle)
{
- KerbalEVA eva = evaVessel.GetComponent();
animation.Stop();
animation.Play(eva.Animations.idle.animationName);
}
diff --git a/source/KerbalSports/Fishing/ModuleFishing.cs b/source/KerbalSports/Fishing/ModuleFishing.cs
index 23a269a..55d87e9 100644
--- a/source/KerbalSports/Fishing/ModuleFishing.cs
+++ b/source/KerbalSports/Fishing/ModuleFishing.cs
@@ -58,7 +58,7 @@ public override void OnUpdate()
// Check 5 meters forward for water
Vector3 checkPosition = vessel.transform.localPosition + vessel.transform.forward * 5.0f;
double latitude = vessel.mainBody.GetLatitude(checkPosition);
- double longitude = vessel.mainBody.GetLongitude(checkPosition);
+ double longitude = (vessel.mainBody.GetLongitude(checkPosition) + 360) % 360;
double height = Util.TerrainHeight(vessel.mainBody, latitude, longitude);
int adminLevel = (int)Math.Round(ScenarioUpgradeableFacilities.GetFacilityLevel(SpaceCenterFacility.Administration) *
diff --git a/source/KerbalSports/KerbalSports.csproj b/source/KerbalSports/KerbalSports.csproj
index ee626b8..8355957 100644
--- a/source/KerbalSports/KerbalSports.csproj
+++ b/source/KerbalSports/KerbalSports.csproj
@@ -9,13 +9,13 @@
Properties
KerbalSports
KerbalSports
- v3.5
+ v4.8
512
true
- full
+ portable
false
bin\Debug\
DEBUG;TRACE
@@ -23,35 +23,58 @@
4
- pdbonly
+ portable
true
bin\Release\
TRACE
prompt
4
+
+ Always
+
+
+
+
+
+
+ KSP_x64.exe
+ KSP.app
+ KSP.x86_64
+ KSP_x64_Data\Managed
+ KSP.app\Contents\Resources\Data\Managed
+ KSP_Data\Managed
+ $(ReferencePath)\$(ManagedRelativePath)
+ Program
+ $(ReferencePath)\$(KSPExecutable)
+ $(ReferencePath)
+
-
- False
- ..\..\..\..\..\..\..\Program Files (x86)\Kerbal Space Program\KSP_Data\Managed\Assembly-CSharp.dll
-
-
- False
- ..\..\..\..\..\..\..\Program Files (x86)\Kerbal Space Program\KSP_Data\Managed\Assembly-CSharp-firstpass.dll
-
-
-
-
-
-
- False
- ..\..\..\..\..\..\..\Program Files (x86)\Kerbal Space Program\KSP_Data\Managed\UnityEngine.dll
+
+ false
-
- False
- ..\..\..\..\..\..\..\Program Files (x86)\Kerbal Space Program\KSP_Data\Managed\UnityEngine.UI.dll
+
+ false
+
+
+ false
+
+
+ false
+
+
+ false
+
+
+ false
+
+
+ false
+
+
+ false
@@ -67,10 +90,10 @@
-
- copy /y "$(TargetPath)" "$(SolutionDir)..\GameData\KerbalSports\"
-copy /y "$(TargetPath)" "C:\Program Files (x86)\Kerbal Space Program\GameData\KerbalSports\"
+
+copy /y "$(TargetPath)" "$(SolutionDir)..\GameData\KerbalSports\"
+