THE NEW Miscellaneous Talk That Doesn't Deserve A New Thread Thread Thread (Part 1)

I was about to say that climate change wasnt political, but then i thought about it for 0.01 seconds and realized it totally is.

Congrats on another update, even though iโ€™m not active here anymore iโ€™m still checking every new update.

6 Likes

It wasnโ€™t supposed to be political, but eh, Americansโ€ฆ

As an American, BELGIUMING AMERICANs goshdarnit.

Well, itโ€™s not all Americans, of course. Just pretty much half of them.

The vocal half, sadly.

All sides are vocal in America. Its a race to who can become the most extreme the fastest.

We should maybe stop talking about politics before we are all banned

4 Likes

Making a note to myself about GLua OOP (GMod Lua).

Garry's Mod
garrysmod
gamemodes
mygamemode
gamemode
init.lua
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
AddCSLuaFile("class_fruit.lua")
AddCSLuaFile("class_animal.lua")
AddCSLuaFile("class_dog.lua")

include("shared.lua")
include("class_fruit.lua")
include("class_animal.lua")
include("class_dog.lua")

function GM:PlayerSpawn(ply)
    local banana = Fruit:new(nil)
    banana:printTable()

    local dogo = Dog:New(nil)
    dogo:PrintInformation()
end
shared.lua
GM.Name = "My Gamemode"
GM.Author = "N/A"

function GM:Initialize()
    -- ???
end
cl_init.lua

include("shared.lua")

class_fruit.lua
Fruit = {}
Fruit.Taste = "Sweet"
Fruit.Cost = 5.00

function Fruit:new(o, taste, cost)
    o = o or {}
    setmetatable(o, self)
    self.__index = self
    self.Taste = taste or "Sweet"
    self.Cost = cost or 5.00
    return o
end

function Fruit:printTable()
    print(self.Taste)
    print(self.Cost)
end
class_animal.lua
Animal = {}
Animal.Cry = "What the fuck!?"
Animal.Species = "Animal"

function Animal:New(o, cry, species)
    o = o or {}
    setmetatable(o, self)
    self.__index = self
    self.Cry = cry or "What the fuck!?"
    self.Species = species or "Animal"
    return o
end

function Animal:Yell()
    print(self.Cry)
end

function Animal:PrintInformation()
    print(self.Species)
end
class_dog.lua
Dog = Animal:New(nil, "Woof", "Dog")
Dog.Gender = "Male"

function Dog:New(o, cry, gender, species)
    o = o or {}
    setmetatable(o, self)
    self.__index = self
    self.Cry = cry or "Woof"
    self.Gender = gender or "Male"
    self.Species = species or "Dog"
    return o
end

function Dog:PrintInformation()
    print(self.Species)
    print(self.Gender)
end

Normally, it should work. Apparently, it is possible to create classes within a module, but I simply wasnโ€™t able to implement any module at all. Also, sorry for one the strings; I just couldnโ€™t find anything original. I was desperately trying to create classes as separate files if youโ€™re wondering.

I recently saw some experienced game programmers recommend to beginners to learn to program first, and only then work on game programming. Iโ€™ve seen you post quite a few times these, to me (Iโ€™ve never made a gmod, mod), pretty simple examples of code that donโ€™t seem to work in it, Iโ€™m kind of also thinking that maybe you could just start simpler. Perhaps install and fire up a new C# console project in visual studio and get some programming experience that way first.

1 Like

It almost makes me want to put on hold (abandon) my project. Almost.

:fearful:

But I guess it would be very understandable and wise. Iโ€™ll think about it.

Anyway, itโ€™s not like I was ever going to finish it.

I guess I could continue my work on the text editor and the calculator or I could still try to make a physics & math engine since Iโ€™ve been learning classical mechanics these days.

(the video is still probably processing but should be good to watch tomorrow at least)

Edit: itโ€™s set to be public now.

Would you rather arm wrestle Putin or get in a thumb war with Boris Johnson?

Donโ€™t ask why I am asking this.

BRO, you became a playing card, seems like Leshy sacrificed you

1 Like

well, even with his sacrifice, we need to scale his power.
we need more ants

1 Like

I just realized that I was still using that edgy halloween profile picture.

We need a totem of bifractured strike, with a bug head on it in order to double the damage output.

Nah, Iโ€™d argue that an unkillable Ant Queen would be more useful. Just donโ€™t kill the Ouroboros for it.

What do youmean, the Ouroboros gets stronger the more you sacrifice it, so it only makes sense to sacrifice it

Terrafirmacraft is good mod

True, so you can get infinite antsโ€ฆ

Maybe you could merge 2 ant queens in order to have a doubley as powerful one.