View forage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public enum Forage | |
/* */ { | |
/* 36 */ GSHORT_BLUEBERRY(Tiles.Tile.TILE_GRASS.id, GrassData.GrowthStage.SHORT, (short)571, 364, (byte)0, 5, 5, 10, 10, ModifiedBy.NOTHING, 0), | |
/* 37 */ GSHORT_CORN(Tiles.Tile.TILE_GRASS.id, GrassData.GrowthStage.SHORT, (short)569, 32, (byte)0, 8, 8, -5, -5, ModifiedBy.NOTHING, 0), | |
/* 38 */ GSHORT_COTTON(Tiles.Tile.TILE_GRASS.id, GrassData.GrowthStage.SHORT, (short)570, 144, (byte)0, 5, 5, -5, -5, ModifiedBy.WOUNDED, 15), | |
/* 39 */ GSHORT_LINGONBERRY(Tiles.Tile.TILE_GRASS.id, GrassData.GrowthStage.SHORT, (short)571, 367, (byte)0, 6, 6, -5, -5, ModifiedBy.NEAR_BUSH, 12), | |
/* 40 */ GSHORT_ONION(Tiles.Tile.TILE_GRASS.id, GrassData.GrowthStage.SHORT, (short)569, 355, (byte)0, 1, 20, -5, -5, ModifiedBy.NOTHING, 0), | |
/* 41 */ GSHORT_POTATO(Tiles.Tile.TILE_GRASS.id, GrassData.GrowthStage.SHORT, (short)569, 35, (byte)0, 10, 10, -5, -5, ModifiedBy.NOTHING, 0), | |
/* 42 */ GSHORT_PUMPKIN(Tiles.Tile.TILE_GRASS.id, GrassData.GrowthStage.SHORT, (short)569, 33, (byte)0, 15, 15 |
View testps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Test-ODBCConnection { | |
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory=$True, | |
HelpMessage="DSN name of ODBC connection")] | |
[string]$DSN | |
) | |
$conn = new-object system.data.odbc.odbcconnection | |
$conn.connectionstring = "(DSN=$DSN)" | |
View WaypointManager.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dofile "$SURVIVAL_DATA/Scripts/game/SurvivalPlayer.lua" | |
WaypointManager = class(nil) | |
WaypointManager.init = function(self) | |
self:load_from_database() | |
end | |
WaypointManager.create_waypoint = function(self, name, x,y,z, r,g,b, player) | |
if not self.waypoints_data then |
View extend_crafting.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function INJECT_CRAFTING(self) | |
local orig_load = SurvivalGame.loadCraftingRecipes | |
SurvivalGame.loadCraftingRecipes = function(self) | |
orig_load() | |
local extra = { | |
{ -- Water + Ember => Milk | |
itemId = "2c4a2633-153a-4800-ba3d-2ac0d993b9c8", -- what gets made |
View gist:1587594470144c8e5220f68719141a90
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local orig_load = SurvivalGame.loadCraftingRecipes | |
SurvivalGame.loadCraftingRecipes = function(self) | |
orig_load() | |
local extra = { | |
{ -- Water + Ember => Milk | |
itemId = "2c4a2633-153a-4800-ba3d-2ac0d993b9c8", | |
quantity = 1, | |
craftTime = 12, |
View colour-wps.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_WAYPOINTS = {} | |
_WAYPOINTS.stored_waypoints = {} | |
_WAYPOINTS.old_chat_handler = nil | |
_WAYPOINTS.installed = false | |
--[[ | |
"uuid": "869d4736-289a-4952-96cd-8a40117a2d28", | |
"name": "obj_consumable_water", | |
]] |
View MMTile Lua Parser.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- fixed invalid mmap_uses_liquid check | |
local file = GetHackDirectory() .. "\mmaps\\0002239.mmtile" | |
function pack(...) | |
return {...} | |
end | |
function ToStream(byte_array) | |
byte_array.index = 0 | |
byte_array.read_bytes = function(self, len) |
View gist:88aee2b8f4dafa1068c5420607bf62b7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[NG Tools] #0 - Packet NGTools.NGRemoteScene.ServerSendGameObjectDataPacket has thrown an exception: | |
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> uLink.NetworkException: caller must have authority over the object | |
at uLink.Utility.Exception (System.Object[] args) [0x00000] in <filename unknown>:0 | |
at uLink.Utility.Assert (Boolean condition, System.Object[] args) [0x00000] in <filename unknown>:0 | |
at uLink.NetworkViewBase.get_authFlags () [0x00000] in <filename unknown>:0 | |
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) | |
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 | |
--- End of inner exception stack trace --- | |
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Refl |
View gist:fccc77d171995c415f779781953ef156
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Game; | |
using GV; | |
using System; | |
using System.Collections.Generic; | |
using UnityEngine; | |
[Serializable] | |
public class MobStats | |
{ | |
[SerializeField] |
View gist:5ef7591223f8a619016aa5389e4d78dd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NGTools: [E3500] SocketException: No connection could be made because the target machine actively refused it. | |
[NG Tools] Connection on :17255 failed. | |
[NG Tools] Make sure your firewall allows TCP connection on 17255. | |
[NG Tools] Check if Stripping Level is not set on "Use micro mscorlib". | |
[NG Tools] Try to connect Unity Profiler to guarantee the device is reachable. | |
[NG Tools] Find more tips at: https://bitbucket.org/Mikilo/neguen-tools/wiki/Home#markdown-header-31-guidances | |
[NG Tools] Unhandled packet 3315. | |
NGTools: The given type is null. |
NewerOlder