[Game] Don't Starve Shipwrecked Console command for all Prefabs

Post gaming related scripts
User avatar
Xeo786
Posts: 759
Joined: 09 Nov 2015, 02:43
Location: Karachi, Pakistan

[Game] Don't Starve Shipwrecked Console command for all Prefabs

06 May 2016, 03:55

Game Detail ............... http://dont-starve-game.wikia.com/wiki/ ... hipwrecked

Console Help ............... http://dont-starve-game.wikia.com/wiki/Console/Commands

1)Please change console default shortkey and set it "=" see controls ... http://dont-starve-game.wikia.com/wiki/Controls
2) Run Game
3) Run Ahk script

note; there are so many items, you will see item will be updated on screen and you can choose any item that you want to give to your player :) just see shortkeys :geek:
shortkeys;
num4 and num6 to change prefab item name that you want to give to player
num8 and num2 to change prefab item quantity that you want to give to player , qty 1, 5, 10, 20, 40

num5 to give item to player
f12 to visible whole map

:dance: ....enjoy.... :dance:

Code: Select all

code := "amulet,armor_grass,armor_lifejacket,armor_ruins,armor_sanity,armor_seashell,armor_slurper,armor_windbreaker,armor_wood,ash,axe,babyox,backpack,balloon,bamboo,beardhair,beargervest,bearger_fur,bedroll_furry,bedroll_straw,bee,beefalo,beefalowool,bermudatriangle,birdcage,birdtrap,blowdart,blubber,blubbersuit,boards,boatcannon,boatlantern,boatrepairkit,boattorch,boat_indicator,boomerang,bottlelantern,bugnet,butterfly,butterflywings,cannonshot,cave_entrance,cave_exit,charcoal,coconade,compass,cookpot,coontail,crab,cutlass,cutstone,deciduous_root,deerclops_eyeball,devtool,diviningrod,diviningrodbase,doydoyegg,doydoyfeather,doydoy_mating_fx,dragonfly_chest,dragon_scales,dragoon,dragoonegg,dragoonfire,dragoonheart,dragoonspit,dubloon,earring,eel,egg,fabric,fish,fishingrod,flamegeyser,flint,flower,flower_evil,frog,froglegs,gem,glommer,glommerflower,goatmilk,goldnugget,goose_feather,hambat,hammer,harpoon,hats,hawaiianshirt,heatrock,honey,honeycomb,hound,houndstooth,icebox,icepack,inv_bamboo,inv_rocks,inv_rocks_ice,inv_vine,jellyfish,jellyfish_planted,knightboat_cannonshot,kraken_projectile,krampus,krampus_sack,lavapool,lavaspit,lichen,lightninggoathorn,limestone,limpets,livinglog,lobster,lockedwes,log,lucy,machete,magic_seal,mailpack,manrabbit_tail,meats,merm,mermfisher,mininglantern,minotaur,mole,monkeyball,monkeyprojectile,mooseegg,mosquito,mosquitosack,mussel,mysterymeat,needle_dart,nightmarefuel,nightsword,nitre,obsidian,octopusking,ox,ox_flute,ox_horn,packim_fishbone,panflute,papyrus,penguin,penguin_ice,perd,pickaxe,piggyback,pigking,pigskin,pike_skull,piratepack,pitchfork,portablecookpot,pottedfern,preparedfoods,rabbit,raincoat,razor,reeds,reflectivevest,resurrectionstatue,rook,rope,sapling,seasack,seashell_beached,seaweed,seaweed_planted,seeds,sewingkit,shadowcreature,shadowcreature_sea,shadowskittish,sharkitten,shark_fin,shark_gills,sharx,shipwrecked_entrance,shipwrecked_exit,shovel,silk,slurtleslime,snake,snakeden,snakeoil,snakeskin,snakeskin_jacket,sparks,speargun,spear_wathgrithr,spicepack,spidergland,spider_web_spit,spoiledfood,staff,staff_projectile,stinger,structure_collapse_fx,stungray,sweatervest,sweet_potato,tallbird,tallbirdegg,telescope,tentaclespots,thatchpack,tigereye,transistor,trap,treasurechest,treeguard_coconut,trident,trinkets,trunkvest,tunacan,turbine_blades,umbrella,veggies,venomgland,vine,volcano_exit,whale,whale_bubbles,wind_conch,woodlegs_boatcannon,woodlegs_key,wormlight"



CustomColor = ffffff  ; Can be any RGB color (it will be made transparent below).
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow  ; +ToolWindow avoids a taskbar button and an alt-tab menu item.
Gui, Color, %CustomColor%
Gui, Font, s25  ; Set a large font size (32-point).
Gui, Add, Text, vMyText cLime, XXXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYYY  ; XX & YY serve to auto-size the window.
; Make all pixels of this color transparent and make the text itself translucent (150):
WinSet, TransColor, %CustomColor% 150
SetTimer, UpdateOSD, 200
Gosub, UpdateOSD  ; Make the first update immediate rather than waiting for the timer.
Gui, Show, x850 y750 NoActivate  ; NoActivate avoids deactivating the currently active window.

position = 0
qty := "1,5,10,20,40"
 
qposition=0

Numpad4::
position := position + 1
loop
{
loop, parse, code, `,
 {
  if( position = a_index ){
  pcode = %A_LoopField%
  ;msgbox, %pcode%
 }
 }
return
}

Numpad6::
position := position - 1
Loop
{
loop, parse, code, `,
 {
  if( position = a_index ){
  pcode = %A_LoopField%
  ;msgbox, %pcode%
 }
 }
 return
}
 

Numpad8::
qposition := qposition + 1
Loop
{
 if( qposition > 5)
  {
   qposition = 1
  }
 loop, parse, qty, `,
 {
  if( qposition = a_index ){
  pqty = %A_LoopField%
 }
 }
return
}

Numpad2::
qposition := qposition - 1
Loop
{
 loop, parse, qty, `,
 {
  if( qposition < 1)
  {
   qposition = 5
  }
  if( qposition = a_index ){
  pqty = %A_LoopField%
 }
 }
return
}

UpdateOSD:
GuiControl,, MyText, %pqty% %pcode% 
return

Numpad5::
fcode := pcode
give(fcode,pqty)
return

return

f12::
c := "GetWorld().minimap.MiniMap:ShowArea(0,0,0,10000)"
SendInput, {= down}
sleep, 50
SendInput, {= up}
sleep, 50
sendinput, %c%
sleep, 100
sendinput, {enter}
Send, {LControl down}
Send, {l down}
sleep, 60
Send, {l up}
sleep, 50
Send, {LControl up}
return

give( text , qtys)
{
 ;item := item
; qty := qty
SendInput, {= down}
sleep, 50
SendInput, {= up}
sleep, 50
sendinput, c_give(`"%text%`",%qtys%)
;sleep, 100
sendinput, {enter}
Send, {LControl down}
Send, {l down}
sleep, 60
Send, {l up}
sleep, 50
Send, {LControl up}
}
Last edited by Xeo786 on 06 May 2016, 05:33, edited 2 times in total.
"When there is no gravity, there is absolute vacuum and light travel with no time" -Game changer theory
User avatar
Xeo786
Posts: 759
Joined: 09 Nov 2015, 02:43
Location: Karachi, Pakistan

Re: [Game] Don't Starve Shipwrecked Console command for all Prefabs

06 May 2016, 04:00

Following code I used to extract item prefabs :idea:

Code: Select all

dest = D:\Games\dont_starve\data\DLC0002\scripts\prefabs\*.*  ; this is prefabs destination for shipwrecked dlc
loop, files, %dest%
	{
		FileRead, content , %A_LoopFileFullPath%
		words := "local assets="
		if content contains %words%  ; this is the condition that separates mobs, characters, and other scripts, and catch only item which is called assets 
		{
			stringreplace, code, A_LoopFileName, .%A_LoopFileExt%,
			;msgbox, %code%
			FileAppend,
			(
			%code%,
			), d:\My File.txt    ; this is file which have all prefabs items only
		;msgbox, found %content%
		}
		else
		{
		;msgbox, not found
		}
	}
return
:roll: well thank you....!
"When there is no gravity, there is absolute vacuum and light travel with no time" -Game changer theory

Return to “Gaming Scripts (v1)”

Who is online

Users browsing this forum: No registered users and 38 guests