Git Product home page Git Product logo

gmod_blueprints's Introduction

ko-fi

Garry's Mod Blueprints

Blueprints for Garrysmod. Clone this into your addons folder and have at it.

License

Installation

Steam Workshop

This addon is available via the Steam Workshop.

How to Contribute

Creating Issues

For feature requests

  • Ensure that the feature hasn't already been requested
  • Please be specific, and provide specific examples

For bugs

The following must be provided:

  • The saved blueprint script (located in garrysmod\data\blueprints\client\bpm_yourfile.txt)
  • Steps to reproduce the issue
  • Any relevant console errors

Use the relevant tags for any issue you're creating!

Get the code

# 1. Change working directory to your Garry's Mod addons directory
cd /c/Program Files (x86)/Steam/steamapps/common/GarrysMod/garrysmod/addons

# 2. Clone the repo
git clone https://github.com/ZakBlystone/gmblueprints.git

gmod_blueprints's People

Contributors

gh1593 avatar jrinkman avatar samuelmaddock avatar zakblystone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gmod_blueprints's Issues

Shorten the Lua Code

If Possible Please Short the Lua Code that get copied to clipboard.
You could eventually do it by:
removing script from THESE nodes/pints taht arent used.
Dont call Tables taht arent nessecary or not used...

Literals don't handle negatives well

Example script: Pastebin link
Steps to reproduce: Place down any literal.
Any relevant console errors: N/A

Negatives aren't displayed in the literal text, and the negative value doesn't hold when changing a literal value.

Feature Request: Communication between Server and Client

There should be a way to send messages between Server and Client.
These messages should include: Strings, Boolean, Numbers and Entities.

Something similar like this:

SERVER:
function server_send()
  net.Start("MyMessage");
  net.WriteString("Hello World!");
  net.Send(player.GetAll());
end

CLIENT:
local function client_receive()
  local cl_str = net.ReadString();
  PrintMessage(HUD_PRINTTALK, cl_str);
end
net.Receive("MyMessage", client_receive);

custom blog module support

addon: https://www.gmodstore.com/market/view/billys-logs
i would like to see support added in blueprints for custom blogs modules to be made

example code (example required path addons\stungun\lua\blogs\modules\addons\stungun.lua):

local MODULE = bLogs:Module()
MODULE.Category = "Stungun"
MODULE.Name     = "Player Tazed"
MODULE.Colour   = Color(205, 205, 0)
MODULE:Hook("PlayerTazed", "blogs", function(ply, attacker)
	MODULE:Log(bLogs:FormatPlayer(ply) .. " was tazed by " .. bLogs:FormatPlayer(attacker) .. ".")
end)
bLogs:AddModule(MODULE)

Error while trying to send to server or export lua

Hey :)
I was just testing the addon and created a little script to download a servercontent, but when i clicked send to server or even export lua to check if something was wrong, i got this.
I don't know if it's from me or from the addon itself.
I have an idea of why it does that but it's too unreliable to even be mentioned
Thanks for help

Compact freed 262144 bytes
Logging into server
Redownloading all lightmaps
Updated remote files: 0
Indexing
TOTAL LOCAL FILES: 1
Logged in!
Indexing
TOTAL LOCAL FILES: 1
Updating user table
1:
		flags	=	1
		groups	=	0
		name	=	Gray
		steamID	=	STEAM_0:0:88134976
Updating group table
Updating groups for: Panel: [name:BPUserManager][class:Panel][0,0,64,24]
Remote file send request: bp_newdefinitionpack.txt - defs2 26 chunks 204 kB
Recv Chunk: id:1 size:8192
Recv Chunk: id:2 size:8192
Recv Chunk: id:3 size:8192
Clicked
Recv Chunk: id:4 size:8192
Recv Chunk: id:5 size:8192
Recv Chunk: id:6 size:8192
Recv Chunk: id:7 size:8192
Recv Chunk: id:8 size:8192
Indexing
TOTAL LOCAL FILES: 0
Recv Chunk: id:9 size:8192
Recv Chunk: id:10 size:8192

[Gmod Blueprints] lua/autorun/graph/sh_bpgraph.lua:652: Node type not found: CORE_Init
  1. error - [C]:-1
   2. AddNode - lua/autorun/graph/sh_bpgraph.lua:652
    3. CreateDefaults - lua/autorun/module/sh_bpmodule.lua:247
     4. CreateModule - lua/autorun/ui/cl_bpfilemanager.lua:452
      5. func - lua/autorun/ui/cl_bpfilemanager.lua:402
       6. RunCommand - lua/autorun/ui/cl_bpmenubar.lua:16
        7. DoClick - lua/autorun/ui/cl_bpmenubar.lua:49
         8. unknown - lua/vgui/dlabel.lua:234

Recv Chunk: id:11 size:8192
Recv Chunk: id:12 size:8192
Recv Chunk: id:13 size:8192
Recv Chunk: id:14 size:8192
Indexing
TOTAL LOCAL FILES: 0
Recv Chunk: id:15 size:8192

[Gmod Blueprints] lua/autorun/graph/sh_bpgraph.lua:652: Node type not found: CORE_Init
  1. error - [C]:-1
   2. AddNode - lua/autorun/graph/sh_bpgraph.lua:652
    3. CreateDefaults - lua/autorun/module/sh_bpmodule.lua:247
     4. CreateModule - lua/autorun/ui/cl_bpfilemanager.lua:452
      5. func - lua/autorun/ui/cl_bpfilemanager.lua:402
       6. RunCommand - lua/autorun/ui/cl_bpmenubar.lua:16
        7. DoClick - lua/autorun/ui/cl_bpmenubar.lua:49
         8. unknown - lua/vgui/dlabel.lua:234

Recv Chunk: id:16 size:8192

[Gmod Blueprints] lua/autorun/graph/sh_bpgraph.lua:652: Node type not found: CORE_Init
  1. error - [C]:-1
   2. AddNode - lua/autorun/graph/sh_bpgraph.lua:652
    3. CreateDefaults - lua/autorun/module/sh_bpmodule.lua:247
     4. CreateModule - lua/autorun/ui/cl_bpfilemanager.lua:452
      5. func - lua/autorun/ui/cl_bpfilemanager.lua:402
       6. RunCommand - lua/autorun/ui/cl_bpmenubar.lua:16
        7. DoClick - lua/autorun/ui/cl_bpmenubar.lua:49
         8. unknown - lua/vgui/dlabel.lua:234

Recv Chunk: id:17 size:8192
Recv Chunk: id:18 size:8192
Recv Chunk: id:19 size:8192
Recv Chunk: id:20 size:8192
Recv Chunk: id:21 size:8192
Recv Chunk: id:22 size:8192
Recv Chunk: id:23 size:8192
Recv Chunk: id:24 size:8192
Recv Chunk: id:25 size:8192
Recv Chunk: id:26 size:3345
Unpacking definitions
Close Buffer: table: 0x4dcc96c8
Created 3 VNodes
1368	752
Created 2 VNodes
1368	752
Can't connect m/m pins
COMPILING MODULE...
Screenshot Requested
You're playing on Garry's Mod server by mTxServ.com, enjoy your stay!
COMPILING MODULE...
Gray: !menu
(Console) added You to group superadmin
COMPILING MODULE...
Close Buffer: table: 0x4dde0ca0
Total time[bpmodule:Save]: 61.999999998079
COMPILING MODULE...

[Gmod Blueprints] lua/autorun/module/sh_bpcompiler.lua:754: attempt to index local 'class' (a nil value)
  1. Profile - lua/autorun/module/sh_bpcompiler.lua:754
   2. Compile - lua/autorun/module/sh_bpcompiler.lua:1206
    3. func - lua/autorun/ui/cl_bpmoduleeditor.lua:80
     4. RunCommand - lua/autorun/ui/cl_bpmenubar.lua:16
      5. DoClick - lua/autorun/ui/cl_bpmenubar.lua:49
       6. unknown - lua/vgui/dlabel.lua:234


Function callbacks

Nodes which have callback pins don't work because callbacks aren't supported yet

String autocomplete error when pressing tab

Steps to reproduce

  1. Open string input for function parameter.
  2. Start typing in sound/ to open autocomplete options.
  3. Press tab.

Observed
String input closes while autocomplete options remain open. A Lua error is emitted:

[ERROR] lua/vgui/dtextentry.lua:222: Tried to use invalid object (type Panel) (Object was NULL or not of the right type)
  1. SetText - [C]:-1
   2. DoClick - lua/vgui/dtextentry.lua:222
    3. OnMouseReleased - lua/vgui/dlabel.lua:234
     4. unknown - lua/vgui/dmenuoption.lua:77

Expected
Autocomplete option is selected as the string parameter.

Structure

Throws an error when creating any structure.
image

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.