Duck Game

Duck Game

Not enough ratings
Duck Game Script Extender (DEPRECATED)
   
Award
Favorite
Favorited
Unfavorite
Mods: Mod
File Size
Posted
Updated
246.313 KB
13 Nov, 2016 @ 3:52pm
22 Nov, 2016 @ 6:05pm
9 Change Notes ( view )

Subscribe to download
Duck Game Script Extender (DEPRECATED)

Description
DEPRECATED SINCE HARD DEPENDENCIES DON'T WORK ANYMORE
will soon move somewhere else for modders to play around with.

Adds hooks and more capabilities for modding

This is a script extender to be used for modding duck game. It includes hooks to duck game's main update loop. This means that logic can be applied when any level is loaded, rather than just through editor items. Other mods may require this mod in order to function.

How to use (as a player):
just install this mod along with the mod that requires it, and you're good to go!

How to use (as a modder):
1) in the VS project for your mod, add DuckGameScriptExtender.dll as a reference (it will be under the workshop content folder for duck game)
2) set the reference to the DuckGameScriptExtender.dll to not copy locally. If you're not sure how to do this, this step is part of the official modding guide: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=484818341
3) [IMPORTANT] Add 'duckgamescriptextender' to HardDependencies in your mod's mod.conf. If you don't do this, your mod WILL crash the game if DuckGameScriptExtender is not installed.
4) All the events can be found through DuckGame.DGSE.DGSE_Events.instance. Hook into these and you're good to go! (do this in onPostInitialize, so it is guaranteed that the events are ready)
Popular Discussions View All (2)
0
22 Nov, 2016 @ 7:16pm
How It Works
Is actually ted
0
22 Nov, 2016 @ 6:25pm
The Documentation
Is actually ted
12 Comments
Is actually ted  [author] 15 Aug, 2018 @ 2:43pm 
update: since hard dependencies seem to be gone for good I'm just putting the source of this inside each mod. Will throw a new workflow on github or something.
Zloty_Diament (Golden_Diamond) 20 Aug, 2017 @ 7:39pm 
@JoeStyles01
That's what I would do. Then refeer to it in your mod
JoeStyles01 26 Jul, 2017 @ 4:55am 
Hi, I'm new to Duck Game Modding so I'm not sure how this would be implimented. Do I just copy the Source Code into my Mod as a new item?
PassMyBong 21 Jul, 2017 @ 4:32pm 
whatre some duck game maods? im not gonna mod online bc i dont wanna lose duck game but i wanna know how to do it with my firneds and stuff
aidan 15 Jun, 2017 @ 9:18pm 
Alright, still thanks
Is actually ted  [author] 15 Jun, 2017 @ 9:17pm 
actually hard dependencies are broken right now and im trying to figure out whats going on
aidan 15 Jun, 2017 @ 9:16pm 
Thank you very much
Is actually ted  [author] 15 Jun, 2017 @ 8:38pm 
Adding to HardDependencies means that your mod.conf should look something like this:
<Mod>
<HardDependencies>duckgamescriptextender</HardDependencies>
<WorkshopID>799483864</WorkshopID>
</Mod>

Obviously with your own WorkshopID in there
aidan 14 Jun, 2017 @ 4:57pm 
How do you add this to HardDependencies?
Folio, Prof. Dr. Wunderbaren 4 Dec, 2016 @ 1:00pm 
The duck game modding scene is a damn desert. Thank you for building an oasis.