#⌨coders-cave

1 messages · Page 44 of 1

keen shell
#

This course helped out a lot when I first started learning C#, it missed some things I wish I knew before tho like lists

#

I didn't want to touch Lists for a long time and that was a very big mistake

wet girder
#

I personally really love Sololearn

#

it let's me learn little bits in bus, in breaks in school, in car driving home

#

etc.

#

I don't need to sit on my PC to learn with it which is the only reason that makes me really motivated to use it

keen shell
#

Woah, I looked it up. Looks very good to learn

wet girder
#

It's amazing

#

There's stuff about most big languages

#

some data science, machine learning etc.

stark ravine
#

This?!

orchid frigate
#

the fact that unity lets me make clean movement with only like 10 lines of code is amazing

#

i could probably make the code smaller but the it would be unreadable

wet girder
wet girder
orchid frigate
#

i remember when it took me 100 lines of code to get the cube to move on the x axis alone

wet girder
#

lol

wet girder
#

I think I've been learning C++ too much

#

I just typed discount as discout

#

because I am so used to typing cout

bold rover
#

I-

wet girder
#

atleast I finished this after a bit of head scrathing

#

and I know my main function doesn't have return 0; because I was a bit lazy

leaden wedge
#

Which code is best for beginners

crystal turret
#

It depends

#

Python is pretty easy to start

#

With

leaden wedge
#

Hmm I started learning python

#

But apparently Java and c++ are good to

crystal turret
#

If you are planning on making games I recommend c++ and/or c#.

#

Ye

#

I dove directly into c#

#

I ended up fine

#

But I wished I used something like python or js to learn basics

leaden wedge
#

Can u use python on unity

crystal turret
#

Not sure

#

I don't use unity

leaden wedge
#

Ok

#

I will try python

#

Then go to c++

wet girder
#

how tf is my output wrong

#

well maybe it's because my code is uhh not what it's supposed to do but technically it should work

file = open("/usercode/files/books.txt", "r")

#your code goes here
data = file.readlines()

x = 1

for name in data:
    if x != 4:
        print(name[0] + str(len(name) - 1))
    else:
        x += 1
        print(name[0] + str(len(name)))

file.close()
wet girder
#

Don't ask why I'm doing python problems 1am

leaden wedge
wet girder
#

You can but C# has better support

#

in Unity atleast

knotty root
#

unreal engine supports c++

trail ocean
#

am I only one who using xml? :<

#

dying noisy after finishing script
I have to do Another translate ahhhhhh

#

really small lines for expert scripters but- I just started scriptting yesterday :3

frail bear
#

What's this place for? Coding for what?

half citrus
#

Anything that includes coding.

stark ravine
trail ocean
#

Coding

#

the god damn

#

I added Two new codes for my mod :D

<incident id="rep_bus_line" properties="type+=crime; popularity=5; visibility=1; stage=1; tag=morning{+2};">

<scene id="scene1" background="CarBackground" properties="onMove=1; vehicle=ve_civil_car; timeToReact=300; avoidPolice=0; solvableBySpeedCamera=True;" >

<suspect id="driver" properties="bill=[100,500]; aggressiveness=0; weapon=e_fist; prison=0; spawnArea=trapped1; isActive=1;" actionOnIgnore="opinionOnSuccess+=1; opinionOnIgnore+=-1;" actionOnEnd="opinionOnSuccess+=2;"/>

</scene>

</incident>

<incident id="rep_vio_lane" properties="type+=crime; popularity=5; visibility=1; stage=1; tag=morning{+2};">

<scene id="scene1" background="CarBackground" properties="onMove=1; vehicle=ve_civil_car; timeToReact=300; avoidPolice=0; solvableBySpeedCamera=True;" >

<suspect id="driver" properties="bill=[250,600]; aggressiveness=0; weapon=e_fist; prison=0; spawnArea=trapped1; isActive=1;" actionOnIgnore="opinionOnSuccess+=1; opinionOnIgnore+=-1;" actionOnEnd="opinionOnSuccess+=2;"/>

</scene>

</incident>```
trail ocean
#

Two new script.
Two new Translate
KR

    "incident.rep_bus_line.description": "승용차가 버스전용차로를 쓰고 있습니다. 금융치료가 필요합니다.",
    "incident.rep_bus_line.driver": "운전자",

    "incident.rep_vio_lane.rep_vio_lane": "지정차로 위반"
    "incident.rep_vio_lane.description": "차량이 지정된차로가 아닌 다른 차로를 쓰고 있습니다. 금융치료가 필요합니다.",
    "incident.rep_vio_lane.driver": "운전자",```
EN
```    "incident.rep_bus_line.rep_bus_line": "Bus Only Line"
    "incident.rep_bus_line.description": "a Sedan started using Bus only Line. we have to give them Ticket"
    "incident.rep_bus_line.driver": "Driver"

    "incident.rep_vio_lane.rep_vio_lane": "designated lanes"
    "incident.rep_vio_lane.description": "A car started using other designated lanes. we have to give them Ticket"
    "incident.rep_vio_lane": "Driver"```
trail ocean
#

total work today : 10 hours

#

1 hours : writing rep_bus_line
7 hours : fixing rep_bus_line
1 hours : writing rep_bus_line 's Translations (KR/EN)
30 mins : testing
1 hours : writing rep_vio_lane
30 mins : writing rep_vio_lane

orchid frigate
#

wait cant you just copy paste the code and then translate everything else or did the translation itself take along time

trail ocean
#

writing most of existing lines are easy to make like, just press i and press enter then "incident" will pop up :3
and yea. it mostly only took less than 10 mins but just wanted to make 30, 60 stuffs

hasty bane
#

filling out hundreds of key value pairs is my favourite part of coding scavenging

#

thankfully the rest of my game bot's code is reusable function to function which is pretty good.
i should probably start using lambda but i am way too stupid / lazy for that

orchid frigate
#

and you know what my favourite part is?
writing math.something or mathf.clamp for the 3000 time 🥲

hasty bane
#

I'm gonna have to deal with a lot of annoying math real soon

orchid frigate
#

if your making a 2d roguelike....good luck

cyan anchor
#

Making swat team

hasty bane
#

oh no dude not in a million years

#

i touched that once and died because my NeutralMonster class was beyond cursed, even the big brains at the python discord couldn't fix it

orchid frigate
#

well thats rude towards my favorite genre of games

hasty bane
#

i love roguelikes

orchid frigate
hasty bane
#

but making them? I'll pass

#

OOP uncool

orchid frigate
#

its easirt

hasty bane
#

i know but i want to learn python more than i want to make a game

orchid frigate
#

not having the visual representation of your game while making it is truly insane

hasty bane
#

rn im making a discord bot, something like a turn-based zombie survival idk

orchid frigate
#

currently making a roguelike in unity, even with unity's easier made c# its hard af

#

to make the rooms

#

and the board in general

#

but thats pretty much everything not including items

hasty bane
#

lol, i snatched code from a tutorial and tried to add a neutral monster class that would become aggressive when attacked

orchid frigate
#

amd art

hasty bane
#

it did not work out

orchid frigate
#

hmm this sounds simple enough to make in unity

#

brb

hasty bane
#

yeah, the problem was in the class and the tutorial code

#

it was around 1k lines and super intertwined

#

so you touch one thing you have to rewrite 10 other things

#

meanwhile rn I'm making my bot in a way that lets me add new things easily as time goes on

orchid frigate
#

so i have an idea for how it would work, basically you need a bool to check if the enemy is being attack(assuming you already have a fighting script), the you check using an if statement if this bool is equal to ttrue and if it is you call a function for chasing and attacking

hasty bane
#

if only it was that easy

#
  1. there's no "combat state" to refer to for the bool check
orchid frigate
#

wait does python make you write the whole game in one script

hasty bane
#

no

#

but that tutorial was in one script

orchid frigate
#

why tho

hasty bane
#

I used it only because the other one with several modules was pure decorator hell

orchid frigate
#

its always best to have multiple scripts for multiple things to simplify things if things need to be fixed

#

i learned that from experiance

hasty bane
#

it is

#

but ig that tutorial was mostly just to figure out how to make python roguelikes in general

#

messing with the map generation broke it, messing with classes broke it

orchid frigate
#

i feel like in python it would be easier to make an algorithm to make a board for a roguelike duo to the fact i think its betetr for algorithms in general

#

idk tho

#

algorithms are always hard

hasty bane
#

i ditched that project really fast

#

writing a roguelike from scratch would've been a better decision

orchid frigate
#

lil sneak peak on all of the scripts for the roguelike(gamemanager doesnt have shit in it currently other then an alternative way to exist the game using alt + f4)

hasty bane
#

interesting

#

I'm more in favour of a turn-based approach

#

and a bot

#

instead of a game

#

it's easier to make

#

and can have mp

#

mp is probably gonna be limited to trading and forming survivor groups

orchid frigate
#

hmm interesting
if you want to learn how o make a roguelike i suggest following this tutorial, sadly its in unity but some things might be useful
they are making kinda a turn based game too

#

This 2D Roguelike project guides you through creating a turn based, tile based game with procedurally generated levels. In the game you play as a lone man trying to find food and survive the was...

▶ Play video
hasty bane
#

interesting

#

i might check it out later

wet girder
# orchid frigate

you could change

directionInt = directionInt % 4;

to

directionInt %= 4;

Just saying lol

orchid frigate
#

i will probably do that when cleaning up the script

#

idk if it improves performance but doesnt but stillDunno

wet girder
#

It doesn't but it takes less time to write lol

hasty bane
#

cleaning up

#

who does that

wet girder
#

I do it like thay

#

always

hasty bane
#

well i uh
kinda so clean up my code but it's probably not fast... at all

orchid frigate
#

look at this beatiful game manager its almost like its done by a 5 year old

wet girder
#

I don't like the coding part of programming. Best part of programming is the logical thinking and planning not typing the code so I always try to make my writing faster

hasty bane
#

I should check the time needed for my registration command

#

logical thinking and planning is really useful when making item types

hasty bane
#

i halved the amount of my player. dataframe columns because a lot of them were nearly useless

#

and got rid of 2/3 of my raw item .csv files (subcategories) because i was able to shove them into consumables

wet girder
#

i started doing more planning, better code and less mistakes after watching this presentation
https://youtu.be/azcrPFhaY9k

Learning to program is hard because programming feels different than other skills. But programming isn't about the languages - it is about the way one should think.

SPEAKER:
Andy Harris


Interested in the stock market? Love trading? I developed my own Market Model which provides BUY and SELL signals on S&P500. Check it out here: https://...

▶ Play video
hasty bane
#

why make a separate healing item .csv when you can just add a hp gain column in the consumables category and that's it

#

i am pretty stupid when it comes to planning

wet girder
#

I'm still too but that presentation really helped me understand to do it well so I'm slowly getting thete

hasty bane
#

i think i have the thing figured out and just as i finish writing it i realize that I could've done it way way better

orchid frigate
#

what i like to do with items is make a general script for all items and then just make each do different stuff, this is especially useful with roguelikes because picking up all items generally have same animations

hasty bane
#

it's a bit different with bots

#

you don't really pick up anything, it automatically goes into your inventory if you find it

#

and you have the space ofc

wet girder
#

Well OOP could be used there too

hasty bane
#

limited inventory space, mm.

#

NO OOP

#

i refuse

wet girder
#

OOP is amazing

hasty bane
#

i have ptsd after dealing with cursed oop

wet girder
#

makes code clean, easier to create and more readable

orchid frigate
#

oh right its a bot, well still cant you just make an item have a stats script to update the player,monster,AI stats upon pickup i guess

hasty bane
#

but tbh so far I don't need oop

wet girder
#

well with OOP you don't need to do repetitive shit

hasty bane
wet girder
#

and it's easier to change something

orchid frigate
#

nice

#

thats useful

hasty bane
#

repetitive shit i have so far can be replaced with lambda

#

but again, 2lazy4it

wet girder
#

I suck with lambdas

#

I hate lambdas

hasty bane
#

same, sort of

#

but i hate oop more

#

even though it's really useful

wet girder
#

I love oop but hate lambdas lol

orchid frigate
#

when i need to do repetitive code i just put it in a region, close the region and pretend it doesnt exist Dunno

hasty bane
#

i have a feeling like dataframes sort of replaced classes and objects in the bot code

wet girder
#

works well before you have gigantic game file

orchid frigate
#

"eh i will buff it out later"

hasty bane
#

pandas dataframes are a godsend tbh

orchid frigate
#

maybe next update

wet girder
#

I should learn more about pandas

hasty bane
#

it's good for working with data obv

#

i use it to store everything pretty much

wet girder
#

I started learning data science once snd learned some pandas but then I got bored of it

orchid frigate
#

pandas and coding...i think this is made either for me or by me

hasty bane
#

anything that the bot can pull that isn't ctx / input? read fron csv

wet girder
hasty bane
#

python in general is very good for data stuff

#

which is why I'm using it!

wet girder
hasty bane
#

now...

#

csv injections...

wet girder
hasty bane
#

sanitize input kids

orchid frigate
#

c# watching in the corner telling itself:
"im good at oversimplifying everything"

hasty bane
#

tbh I can't get regex to sanitize input lol.

#

I'm just gonna limit characters

wet girder
#

Only reason I'd ever use C# is some .net stuff

hasty bane
#

can't execute malicious code if you can't fit it in! always works

wet girder
hasty bane
#

the rest is just gonna be reactions

#

Oh yeah

#

thing is even googled regex didn't work so i gave up

#

lmao

orchid frigate
#

i wonder how easy is it to make a simple algorithm for generating things like graphs or structures in python

wet girder
#

lmao

wet girder
#

like 10-30 lines

orchid frigate
#

🥲 not in unity

hasty bane
#

graph? bad

#

i think there was a module for that

#

tbh

wet girder
#

Yeah there is

hasty bane
#

uhm

#

madplotlib?

orchid frigate
#

generating a board...and then a room...a corridor for the room... things inside the room...

#

nightmare

hasty bane
#

is that the name

wet girder
hasty bane
#

i think i saw it in a pandas jupyterlab tutorial

#

jupyterlab is cursed

#

i do not like working in it

orchid frigate
hasty bane
#

lol yes

wet girder
#

Matpotlib

hasty bane
#

alright

#

there were some graph things in the tutorial but I didn't really need them so eh

#

Graphs might be useful later on though

#

when I'm gonna start updating the bot after i release it

#

for balancing reasons

wet girder
#

Sololearn has really amazing Data science course if you're interested

orchid frigate
#

its best to make all the updates before the release i think

hasty bane
#

I used sololearn a long time ago, it messed with my phone keyboard so i stopped using it lmao

wet girder
#

lol, I use it in daily basis

hasty bane
orchid frigate
#

ofcourse updates are still mandatory but if you have planned updates from now its best to do them now

hasty bane
#

balancing, new mechanics all that stuff

wet girder
#

I'm 5th most active user in Finland CB_panda_dab

hasty bane
#

holy shit

hasty bane
#

all i have rn is a very very basic scavenging system

orchid frigate
hasty bane
#

lmao

#

true

#

weighted random choice be like: treesmile maximapprove

#

especially when you go with wrc + nested list

orchid frigate
#

"yea half the game isnt nearly done but we can fix it with updates nothing we cant buff out"

wet girder
#

@hasty bane so you're working on discord bot or what? I tried understanding it from what you've been talking but I'm honestly still not 100% sure

hasty bane
#

maximum overdrive, clean code

#

Yes i am working on a discord bot

wet girder
#

I have way too much experience in that field

hasty bane
#

lmao

orchid frigate
wet girder
#

I have 7 months of experience in discord bots and almost none in any other development with python or any other languages

hasty bane
#

i have like 1 month of python experience lmao

#

some bits here and there over the last year but i couldn't stick to it till march

orchid frigate
#

1 year old c# experiance be like

wet girder
#

I have techinally been learning python since I was 10 but not that actively

hasty bane
#

based

orchid frigate
#

also today i learned how to use switch and enum its been a fucking year

hasty bane
#

I haven't run into any problems with the bot so far

wet girder
#

I've been learning about IT though basically daily since I was 9

orchid frigate
#

and i havent used the most useful shit ever

hasty bane
#

even got scavenging to work first try

wet girder
hasty bane
#

i know

#

it's gonna be fuuuuun

wet girder
#

I'd need to remake basically everything for #🔁map-conversion , create amp clans, finish modmail, fix other random bugs

#

way too much for mr

hasty bane
#

oof

#

map conversion honestly sounds like an interesting thing

wet girder
#

when I'm not getting a penny for any of it and I don't get that much enjoyment or learning from it anymore

orchid frigate
hasty bane
#

processing image into map file

orchid frigate
#

its always been interesting to me because it looks complex af

wet girder
hasty bane
#

until recently

wet girder
orchid frigate
#

ye i am

hasty bane
#

got hit with le depression and I'm so bored of everything including school i just code

#

it's fun

#

after you get through the basics and you learn enough to work on projects it's great

#

this bot is my first large project

orchid frigate
#

i had to write half a notebook of math so im kinda sick of code that includes numbers rn but litteorly everything in unity is math based

hasty bane
#

i try to avoid math, I'm not good at it

#

granted you can google things but eh

#

it can get confusing real fast

orchid frigate
#

the good thing about unity is it does most math for you
the bad thing is it doesnt tell you when to use it

wet girder
#

Well first you get process the image to have only the colors that you can have with tiles in WB with some image manipulation code, pretty simple at this point.
After that you check the resolution and through that decide how big it needs to be.
Then it goes through this script I don't understand that somehow makes all the data collected into the file which I'd need visualization to explain how WorldBox map files work

hasty bane
#

that's interesting

#

for loops?

wet girder
#

There's actually only one for loop

orchid frigate
#

for every chunk of the image

hasty bane
#

🤔

orchid frigate
#

or even pixel

wet girder
#

Chunk, don't remember how many pixels one chunk was

#

but 1x1 map would be 12x12 chunks if I remember correctly

hasty bane
#

chunks... interesting

orchid frigate
#

i mean i think you can set it to as much as if you want if you decide to make the chunk....watcher script(???) yourself

hasty bane
#

50x50 wb map when

wet girder
hasty bane
#

oh no

#

a tsar bomb explosion would be smaller than a regular grenade

wet girder
#

I sent my message way too early

hasty bane
#

lmfao

wet girder
#

on accident

hasty bane
#

happens sometimes

orchid frigate
#

wait i have an idea
why dont you just do sprite editor type thing(unity) and look at the image that way using a for loop

wet girder
#

I'm already tired enough that I lost my ability to write well

hasty bane
#

lmao

orchid frigate
#

brb ima give an example

wet girder
#

damnit

hasty bane
#

lol

wet girder
#

I typed way too well in that video

hasty bane
#

doesn't load, discord is cursed

wet girder
#

damn

hasty bane
#

yeah

#

sooo

#

i have pretty big plans for the bot

wet girder
#

What are the plans?

hasty bane
#

25 locations (5x5 city), each location can have player safehouses in it, locations will have threat level and loot saturation level

#

stuff like that

#

slightly sophisticated combat

wet girder
#

You have to settle with something small for first version most likely

hasty bane
#

yeah

orchid frigate
#

im back

hasty bane
#

most of the stuff is in a "maybe" trello column

wet girder
hasty bane
#

the stuff I'm gonna do is scavenging, proper inventory and needs

#

thirst, hunger etc

orchid frigate
#

as long as i dont save this slice unity might not crash for a while

#

saving this will definetly cause some file issues

hasty bane
#

hmm

orchid frigate
#

there are 2500 little cubes

#

just did the same with one, now there are 10000

wet girder
#

I'm gonna have my first paid programming job next summer for 2 weeks. I'm gonna go create website which is gonns totally be new programming experience as I've never actually done web development nor have I never done anything for someone that I'd get paid for

hasty bane
#

I'm thinking about maybe making discord bots in the future

#

for people

#

too early to think about it lol

orchid frigate
wet girder
wet girder
hasty bane
#

if i could get a programming job I'd go work for a company

#

high salary + stable income, pretty nice

orchid frigate
#

if i become a programmer i will become an indie game dev or work for ubisoft

wet girder
#

I'd start bussiness/startups

#

I never want to work for big companies

hasty bane
#

imagine front end lOL

wet girder
#

Front end is boring af to do

hasty bane
#

exactly

#

idk about businesses or startups

orchid frigate
#

well yes but then i get to say "i made far cry 69"

hasty bane
#

Fair enough

wet girder
#

It's way cooler to say I own a business or something

hasty bane
#

true

orchid frigate
#

i might also be on the credits which only like 0.1% of people read

hasty bane
#

but like... what business

wet girder
#

and I'm honestly not satisfied with how companies deal with internet security nowadays

hasty bane
#

yeah that sucks

#

hm

#

tbh

#

you can develop software and sell it

#

that's pretty good ig, probably requires a team though

wet girder
#

That's exactly why I want to create company teaching about internet, your data and want to affect the legal boundaries of internet

hasty bane
#

maybe something that helps you keep track of crypto

orchid frigate
hasty bane
#

that works too

wet girder
#

lol

#

I don't think anyone else than ea could make money like that ngl

hasty bane
#

ea will probably buy you if you try that

orchid frigate
#

im not gonna be suprised if the next fifa game is litteorly a copy paste of the last

#

with 2 new models

hasty bane
#

big corps like buying smaller corps

#

monopoly

orchid frigate
#

and maybe an extra script for good messure

wet girder
#

My classmate is obsessed with FIFA and I don't understand why

hasty bane
#

Sports games are cursed

wet girder
orchid frigate
#

ea is kinda like da beers
found a gold mine and became rich off if it

hasty bane
#

Well there are anti-monopoly laws

wet girder
#

They don't really work in tech

hasty bane
#

but it's mostly in the us and we all know the politics in that country

orchid frigate
#

no but they work in diamonds

hasty bane
#

so

wet girder
#

They aren't made for tech

hasty bane
#

yeah

#

Also data being sold

#

because idk

#

people don't care about reading long documents

orchid frigate
#

oh wait the laws...no laws for tech really other then "dont hack pleawse thx"

wet girder
#

They tell that to users but users don't read that

hasty bane
#

yeah

wet girder
#

so it's perfectly legal because average consumers are idiots

hasty bane
#

mhm

wet girder
#

My dream is to work to make these problems minimal

hasty bane
#

meanwhile corporations like youtube manage to break their algorithm SOMEHOW

orchid frigate
hasty bane
#

if YouTube can break such a giant part of their entire system even though they have a lot of skilled programmers

#

imagine the amount of vulnerabilities everywhere

wet girder
#

Software bugs always happen

hasty bane
#

i saw the spiffing brit video

#

and then i saw the socialblade of a guy who followed the instructions

#

i think it was a 110000% sub increase

orchid frigate
#

no no no guys we cant use the word bug or big company bethesda might get mad we want to call them unintended features

wet girder
wet girder
hasty bane
#

4 times the bugs

#

he is

#

but bruh. one man figured out the secret youtube formula

wet girder
#

He has the true hacker mindset: "How could I fuck up this very important thing for this very big tech company"

orchid frigate
hasty bane
#

oh no

#

next "Nuclear silos are completely exploitless 100%"

wet girder
hasty bane
#

ah i remembered that huge attack

#

don't remember it's name

orchid frigate
#

"the world economy is completely exploitless 100%"

hasty bane
#

where some professionals hacked into us gov stuff

wet girder
#

Anonymous has done that few times at this point

orchid frigate
wet girder
#

wrong name

#

I meant anonymous

orchid frigate
#

anonymous are good i wanna join em

hasty bane
#

anonymous is weird

orchid frigate
#

but i dont have half 1/9000 of there knowladge so...

hasty bane
#

they disappear and then they break government websites

wet girder
#

Anonymous never do anything for money, they're political group

hasty bane
#

and then they disappear again

orchid frigate
#

im not about the cause im about the action

wet girder
#

They only come when they need to protest against something

#

they just do it in very agressive way

orchid frigate
hasty bane
#

i want to believe that Anonymous is working on the super virus that will take down the internet

#

like brick all servers world-wide

#

that would be funny

orchid frigate
wet girder
#

Why would they do that

hasty bane
#

for the lulz

wet girder
#

Thing is anonymous would never do anything just for the lulz

hasty bane
#

Maybe they are anprims

wet girder
#

every attack risks some pf their hackers getting caught

hasty bane
#

And think that the industrial revolution was a disaster

orchid frigate
#

imagine someone deletes the internet and when asked why they say "i felt like people would make great memes about it...then i remembered no internet = no memes"

hasty bane
#

anonymous takes down 4chan

#

social media collapses

orchid frigate
hasty bane
orchid frigate
#

now that would be the end of the internet

hasty bane
#

club penguin is a CIA front

#

i know it

#

interesting case

orchid frigate
#

even more interesting slogan
i swear anonymous are just a group of editors who try to fix the internet but end up attacking governments

#

reditors

crystal turret
#

Weow. Building a interpreter for a custom coding language is harder then I thought.

crystal turret
#

at least harder then I thought

trail ocean
#

First time to fingure out how to make event bois :D

<incidentTypes id="events_incidents"  >
<incident id="rep_int_drunk" properties="type+=road;
popularity=1;
visibility=0.5;
tag+=night{+3};
stage = 1;">
      <scene id="inten" poi="ROAD" background="Road1Background"  properties="timeToReact=10000; AddMoney(5000); iconMap=important;
opinionOnSuccess=5;
opinionOnIgnore=-1;">
        <policeWork id="sive" properties="workAmount=2000; " actionOnEnd="AAR+=gears"/>
      </scene>
            <aar>
        <reportElement id="gears"/>
      </aar>
</incident>
</incidentTypes>```
half citrus
#

Holy colorful codes

bold rover
#

It just highlights...It hurt

honest burrow
#

My god...

trail ocean
#

I used ` and xml

#

because I use xml coding

wet girder
#

highlighted code is fuckin awesome

#

coding without highlighting is like like doing electrical engineer without color vision

stark ravine
#

My eye

#

hagrid why the background is white

#

Is there is a way to change background

wet girder
#

most IDEs yes

trail ocean
#

After I learn how to make events one

#
<incidentTypes id="events_incidents"  >
<incident id="rep_int_drunk" properties="type+=road;
popularity=0; tag+=night{+1};
visibility=0.5;
stage = 1;">
      <scene id="inten" poi="ROAD" background="Road1Background"  properties="timeToReact=10000; AddMoney(5000); iconMap=important;
opinionOnSuccess=5;
opinionOnIgnore=-1;">
        <policeWork id="sive" properties="workAmount=2000; " actionOnEnd="AAR+=gears"/>
      </scene>
            <aar>
        <reportElement id="gears"/>
      </aar>
</incident>
<incident id="rep_int_drunk2" properties="type+=road;
popularity=0; tag+=night{+1};
visibility=0.5;
stage = 1;">
      <scene id="inten" poi="ROAD" background="Road1Background"  properties="timeToReact=10000; AddMoney(4000); iconMap=important;
opinionOnSuccess=5;
opinionOnIgnore=-1;">
        <policeWork id="sive" properties="workAmount=2000; " actionOnEnd="AAR+=gears"/>
      </scene>
            <aar>
        <reportElement id="gears"/>
      </aar>
</incident>
<incident id="rep_int_crack" properties="type+=road;
popularity=0; tag+=day{+1};
visibility=0.5;
stage = 1;">
      <scene id="intcc" poi="ROAD" background="Road1Background"  properties="timeToReact=10000; AddMoney(1000); iconMap=important;
opinionOnSuccess=2;
opinionOnIgnore=-1;">
        <policeWork id="sive" properties="workAmount=1000; " actionOnEnd="AAR+=gears"/>
      </scene>
            <aar>
        <reportElement id="gears"/>
      </aar>
</incident>
<incident id="rep_int_crack2" properties="type+=road;
popularity=0; tag+=day{+1};
visibility=0.5;
stage = 1;">
      <scene id="intcc" poi="ROAD" background="Road1Background"  properties="timeToReact=10000; AddMoney(500); iconMap=important;
opinionOnSuccess=2;
opinionOnIgnore=-1;">
        <policeWork id="sive" properties="workAmount=1000; " actionOnEnd="AAR+=gears"/>
      </scene>
            <aar>
        <reportElement id="gears"/>
      </aar>
</incident>
</incidentTypes>```
#

Ye

#

3 new bois

trail ocean
stark ravine
#

You know what
The white background is better :hagrid:

#

We can steal see the code better

wet girder
#

I use dark theme

#

always

trail ocean
trail ocean
empty jacinth
orchid frigate
#

White theme hurts my eyes and soul

stark ravine
trail ocean
#

game

#

112 Operator allows you to manage emergency services in any city in the world! Dispatch units, take calls and face situations caused by weather, traffic or changing seasons. Help the city survive escalating events like riots, organized crime, terrorist attacks, cataclysms, natural disasters and many more!Danger has escalatedHelp on a scale bigge...

Price

$24.99

Recommendations

1826

Metacritic

73

▶ Play video
wet girder
#

You're learning cpp?

#

What does that code exactly do

#

I never feel very safe installing random code files

#

I still don't like installing them and I'm updating windows atm lol

#

nice

#

ye I know

#

I've been learning cpp last 5 days or so

#

Cool code ngl

orchid frigate
#

C++ hagrid

knotty root
#

noice

wet girder
#

C++ is amazing man

#

C is even more amazing

#

but I'm just trying to think of a project to do with C++ to learn it better

#

but I've got no ideas

keen pawn
wet girder
#

Eh it's totally not A+ by any means if we look only at technicalities

orchid frigate
#

wanna see something worthy of an S?
Debug.Log("Hello World!")

wet girder
#

It's pretty general opinion that C and JS are the best 2 languages

orchid frigate
#

i feel like if you asked 30% of programmers what their favourite language was they would tell you python, 20% java, 20-15% javascript, 10% C and the other 20% are for everything else

#

the c# people mainly like c# because its a really good lanaguge for games and its very easy to make applications on it

#

especially with visual studio

wet girder
#

actually senior devs rather use C++ than C# most of the time for game dev

orchid frigate
#

indie game devs say otherwise

wet girder
#

Yeah indie true

orchid frigate
#

c++ is great for big companies who want to make great readable code that everyone can work on while c# is practically unreadable if you have more then 500 lines in a single script

#

especially if you arent the one who made it

wet girder
#

Just imagine reverse engineering someone's code

#

the code makes literally so little sense after reverse engineering

orchid frigate
#

lmao yea
but just imagine what a script for a unity game like hollow knight looks like

knotty root
#

hello jupe

#

bye jupe

wet girder
#

oh gosh

orchid frigate
#

trying to read the code for the game manager might be like trying to read binary when you dont even know what that is

#

game managers are both great and suck

#

if you have a mistake in one you will need to go through every singe line of it to find it, and then comes the fact that game managers dont do one thing

#

meaning finding what you wrote 2 years ago and fixing it would be a nightmare

wet girder
#

yep lol

#

that's why I try to write readable code

#

I'mma sleep tho now

orchid frigate
#

aight gn

keen shell
#

Wot

verbal lynx
#

Idk man

#

My friend wanted me to join this

keen shell
#

Why are you sharing this here tho?

verbal lynx
#

Pretty sure it's a pyramid scheme, but it's also a free download so idk

#

This is coders cave

keen shell
#

Haha okay I guess

verbal lynx
#

Cryptocurrency is coding

#

Yeah

verbal lynx
#

I mean, the developers seem legit. Nicholas Kokkalis and Chengdiao Fan

#

The problem is that the way you get more power is by referring to others, very pyramid schemey

upper wagon
#

Hey, i have a question, is it possible to edit a characters items using a world file? I can use the discord bot for editing traits but idrk how to do the same with items

keen shell
#

Uhm I haven't looked enough at the decoded text yet but you can use ~decode in #🔁map-conversion
Then open the txt file and search the person you want to change things for

#

@upper wagon

upper wagon
#

okay, thank you

#

i hope that works

keen shell
#

~decode with the map attached

upper wagon
#

alright

#

same map file as ~btrait?

wet girder
#

Don't advertise and that currency sucks anyway

#

absolutely no value

upper wagon
#

whats the point of advertising a crypto except for a pump and dump scheme

wet girder
#

Some free money

#

in this case like 0.001 cents

#

the currency sucks so much

#

I've mined it a bit but wasn't worth it

verbal lynx
#

Ok

hasty bane
#

mm yes

#

today i did almost nothing

#

because i kept rewriting the combat system

#

first i wanted to make several different units that could stack and took turns attacking, then i decided that was pretty dumb

#

Decided to change to a system where i had minor enemies which had a hp pool and major enemies that had a unit pool (damage dealt would stack to 100 and once it goes over 100 one unit is removed from the pool)

#

That was very dumb too, because it would require predetermined enemies pretty much

keen shell
hasty bane
#

At least i got it right in the end

#

my current system lets me generate any amount of enemies

keen shell
#

Or it's just, I do so much that goes wrong that I don't see any progress

hasty bane
#

randint + several factors = win

hasty bane
#

and then you realize it was pointless because the command executed in under a second anyway

orchid frigate
#

i managed to make the movement script for the player shorter

#

i legit wrote 6 lines of code and managed to make movement that is pretty much great, not including the fact its very simple

hasty bane
#

nice

#

bruh i just hit lvl 50

wet girder
#

I had busy day but still managed to pull out 30 mins of C++ training somehow.
I had firefighter trainings and wanted to stream some tetris + school.
I really need to start project with c++ tho

#

I'd also need to do amp stuff but I've completely lost motivation, and when there's no motivation nothing gets done

knotty root
#

motivation is not something you suddenly get

#

its something you gain

keen shell
crystal turret
keen shell
#

thanks

#

pretty good quality, better than most tutorials I see on youtube

north dune
knotty root
north dune
#

and motiviation aside, burnout is a serious problem if you commit to anything for too long

knotty root
#

Yeah

north dune
#

you could be fully motivated to do something but feel burnt out because you've been doing it for so long already

#

ive been a bit stuck in that boat for a while

lime socket
#

i know how to make a spammer bot

#

not 100% that it will work tho

knotty root
wet girder
north dune
#

why not

wet girder
#

Ehh idk I just don't like to create any harm to anyone in any way

north dune
#

spam is harmful?

#

i like fried spam

#

(not really)

wet girder
#

Like annoying so I count it as harm, light but still counts Imo

north dune
#

if annoying counted as harm i'd be hurting all damn day :(

wet girder
north dune
#

i like how this room is only sometimes about code btw lol

wet girder
#

lol, it's still kinda about it

trail ocean
#

When you release your code is wrong but it was too late to change :

stark ravine
#

The car is so big you can isekaie Godzilla with it

trail ocean
#

lol true

#

and don't worry about why it showing error.... I wanna yeet that too

stark ravine
#

wat what did you add on the mod?!

#

New ecounter?!

trail ocean
#

new vehicles, the big ones. as you can see

#

the thingy I had to fix is what I added

stark ravine
#

Ok but what this

trail ocean
#

hospitals

stark ravine
#

Ou

#

Thonk so you can add new vehicle

trail ocean
#

and incidents

stark ravine
#

What about new tool

trail ocean
#

and vehicles needs this too :>

trail ocean
stark ravine
trail ocean
#

That's pic

stark ravine
#

Isn"t there is like tool in that game

trail ocean
#

ah yea, it's called gears

#

but I don't know how to make Gears SOO..

stark ravine
#

Like tazer or something like that you can equip to personal

stark ravine
trail ocean
#

hope you know I just started coding 3 days ago

stark ravine
#

Its a pic on your screen?!

trail ocean
#

get on pc

stark ravine
trail ocean
#

starts learning coding

lime socket
knotty root
knotty root
trail ocean
#

Wdym hardcode?

knotty root
#

code everything yourself

#

you can make a program to do it for you for example

trail ocean
#

eh?

hoary hound
#

My project for my final school exam is going to be a vr version of zoom, basically a virtual class. The idea excites me, but I have to use unity and I've never used it before, not counting that I have to make it vr compatible, but there are already some plugins that do a lot of the technical stuff so that's good Tom

wet girder
#

VR is actually pretty much ghe same difficulty in unity than other 3D stuff from what I've heard

#

but that sounds tough

hoary hound
#

It's only going to be a prototype with basic features, I have only one month to do the whole thing, with school on the way of course I have much less time

#

They give us some school hours to continue our projects, it makes sense since it's a school project Jerry

keen shell
#

YouTube planned a live VR feature once, don't think they even made it tho

#

I have used blender to make a 360 video for youtube. Video works but when I tried audio it's just a bit stuck to a line from left to right, not really sounds like it's in 3d space.

#

In blender I used a Equirectangular camera and after rendering a plugin to convert and a edit the metadata of the video so that it became 3d

north dune
#

interesting project

#

i think theres a few things on the oculus store that attempted similar

hoary hound
north dune
#

okay nice, good luck

stark ravine
north dune
stark ravine
#

hagrid ou

north dune
#

mostly DnSpy for modding

orchid frigate
#

I never thought lists in c# unity would be so damn good hagrid

keen shell
north dune
#

lists are love

#

learning to use lists and loops changed everything lol

#

and the most memorable thing ive ever done was use a list of lists to create some sort of undo system

north dune
#

cant edit the list while its in use by the loop or you cause error

orchid frigate
#

And I'm 100% that uses alot of for loops

#

But yea lists are amazing

north dune
#

i personally use a lot of foreach rather than for loops, but it should be case by case

#

I'm making an algorithm to generate random dungeon rooms
sounds sick

#

post progress

hasty bane
#

anything that has something to do with random mapgen gives me ptsd

orchid frigate
#

I'm currently learning about it and what I know is that at some points in development there are many for loops going into eachother a bit like this:
for(i = 0, I < maxRooms, I++){
for(g = 0, g < columns, g++){
for(h = 0, h < rows, h++){
Debug.Log("don't remember the rest");
}

#

Not an accurate representation, but just a thing I came up with on the spot

#

(may have forgotten some curvy brackets but eh ¯_(ツ)_/¯)

#

This is the first time im making an algorithm of this complexity so this may suck at the start

desert slate
#

01001001 00100000 01010011 01010000 01000101 01000001 01001011 00100000 01000010 01001001 01001110 01000001 01010010 01011001

north dune
#

(not)

#

the ingame image to map conversion is done with nested loop

#

maxim's code, all i did was apply it to other pictures

orchid frigate
#

Interesting I was always interested in seeing how map conversation was done

#

But yea nested loops aren't alot of fun

north dune
#

i assume the discord bots doing conversions also have to have nested loop for the same reason, getting x tiles and y tiles seperate

#

this is possible because of maxim making tiles have height with naturally generated maps

#

for some reason once you save the map and load it, the heights are all kinds of fucked, i think tile types have a default height and map generation overrides it

hasty bane
#

i have no idea what this all means but it looks cool

north dune
#

lmao

orchid frigate
#

Wait so does this mean that naturally generated maps have got different heights then loaded once?

#

Ones*

#

I can't really explain to myself how this is possible because doesn't it just save the heigh values for individual tiles or maybe loading a map is done in a different way

hoary hound
#

time to start learning unity

#

right now I'm just following a tutorial to add oculus libraries Tom

hasty bane
#

today was a day of scary code things

#

scavenging and combat

#

math and lambdas

deft anchor
#

What if a duck quacked so loud that thanos die ?

orchid frigate
# hasty bane scavenging and combat

combat is really annoying to do... fortunately for me roguelikes dont have a super complicated combat system so most of the code is "You collide with something, you take damage" or "You collide with someone, you take damage"

hasty bane
#

it's more or less simple in my game-bot

#

it spawns x enemies based on several factors

orchid frigate
# hoary hound time to start learning unity

the best way to learn that im currently doing is to think of a big project to work on and whenever you get stuck to search up the results and try to understand what the code does

hasty bane
#

then their damage is calculated using (log(enemycount, base 2) /3)*10

#

every time some enemy dies, damage is recalculated

orchid frigate
hasty bane
#

random.randint

#

but there are a bunch extra factors

#

it tended to spawn enemies in multiples of 5

#

so i added slightRandom (0.8-1.1)

orchid frigate
#

intRange is a lil script used to generate a random int in the range of a certain range of numbers in unity

#

i will give the code here if anyone is interested

#

(im pretty sure it works in nomral c# too :))

hasty bane
#

yeah thats python random.randint

#

does the same thing

hoary hound
#

so far I didn't code anything, luckily someone made a nice oculus integration plugin, so I can already play the game on vr with hands (maybe hand tracking too), also been playing around with grabbing stuff

hasty bane
#

i had to use random.uniform for some stuff and round it

#

here's an example of how it looks rn

#

I'm gonna shove it into an embed later

orchid frigate
# hasty bane does the same thing

unity has a similar command that is maid by the devs but intRange is usually made by the owner of the project so that he doesnt have to write the same long command over and over

#

using System.Collections;
using System;
using System.Collections.Generic;
using UnityEngine;
[Serializable]
public class IntRange
{
public int m_min;
public int m_max;
public IntRange(int min, int max){
m_min = min;
m_max = max;
}
public int Random{
get {
return UnityEngine.Random.Range(m_min, m_max);
}
}

}

hasty bane
#

Probably gonna add some shit like support items

#

Smoke bomb or something

#

increase damage, decrease damage taken, increase chance to flee

#

combat isn't really the focus

north dune
#

intRange is usually made by the owner of the project so that he doesnt have to write the same long command over and over
example of this in worldbox:

#

i thought it was weird at first but then i learned everyone does something similar

#

like you said, the original is pretty long to type every time

orchid frigate
#

its really useful especially when you are trying to make random things

north dune
#

yes

hasty bane
#

@everyone

#

liar!!!

bold rover
#

Did you

#

Ping everyone...

hasty bane
#

yes

upper flame
#

no

knotty root
#

@everyone

#

@green wyvern

wet girder
#

Keep this chat on topic

bold rover
#

That's true Jupe

green wyvern
hasty bane
#

i spent 3 hours fixing reactions today

#

apparently the wait_for check was fukd so i had to fix it

#

it no longer lets other people end your scavenging runs

orchid frigate
#

Checks never work for some reason

#

I once had an if statement and 9/10 times it would count the if statement as a false when its value was always True

#

1/10*

astral basin
#

99.9999% it's always user error 😄

#

"the compiler must be mistaken here... ohhhh"

orchid frigate
#

its kinda my fault tho because i didnt know what other statements and loops there are so i just made 20 bools with 30 if statement checks and hoped for the best

#

in a single script may i add

astral basin
#

haha

sly schooner
#

Hey guys, I have a question on unity c#.
So I want an NPC to run away from someone. I use unity's NavMeshSystem and my idea is to run away to the opposite direction. Here's a drawing showing my idea. (Simplified version)

#

Currently I just use the negative position value of the enemy as the destination

#

But as you can probably understand, it's janky

knotty root
#

python

#

🛒

orchid frigate
sly schooner
#

It's 3D

orchid frigate
#

I once actually had something like this happen, I was attempted to make an enemy come towards me whenever I'm in a certain redius but ended up launching him thousands of meters a second whenever I got near him

#

It was when I was first learning 2d

#

Anyway, back to the subject

#

So here is a question: do you want him to run away in the same direction you started chasing him or do you want him to run away in a random location that isn't the one you are chasing him in

sly schooner
#

I want him to run away

#

I'm using the Unity NavMeshSystem for that

orchid frigate
#

Yea I get that but is it in the opposite direction or in a random direction sorta opposite you

#

Usually my first thought to do that is to take your transform and do the same thing if you wanted him to chase you but with negative values, but I understand that doesn't work

#

Hmmm

sly schooner
orchid frigate
#

Alright

#

Do you have the nav mesh set up on your platform/place that you and your AI are walking on

sly schooner
#

Yeah

orchid frigate
#

If yes then just putting negative values shouldn't be a problem

sly schooner
#

I tried that, it was janky

orchid frigate
#

I haven't done this before so Im just thinking of a solution

sly schooner
#
var enemdist = Vector3.Distance(FindClosestOBJ("Enemy").transform.position, transform.position);

if (enemdist <= spottingRange)
{
agent.SetDestination(new Vector3(enemdist + transform.position.x, 0, enemdist + transform.position.z));                        
}                    
#

Ah wait

#

Let me clean it up a little bit

#

So let me explain what I'm doing here

#

I'm taking the X and Z and adding the distance (Magnitude if we're speaking vector)

orchid frigate
#

So one think you can do is:
Vector3 moveDir = aI.transform.position - player.transfrom.position;
Transform.translate(moveDir.normilized * aISpeed * Time.deltatime(put this only if you want the movement to not be framerate independent, but you probably already knew that so idk why I wrote this));

#

Jesus that's hard to read

#

Im on mobile so I don't really know how to set up text to be for code

sly schooner
#

You can use the `

orchid frigate
#

Ah thanks

sly schooner
#

Write it 3 times, then put your text, and then close it with three `

#
Like this
orchid frigate
#

Huh

sly schooner
#

It's the tilda, not the upper comma

orchid frigate
#

Damn I hate discord mobilr

sly schooner
#

lol

orchid frigate
#
Transformer.translate(moveDir.normilized * enemySpeed * Time.deltatime);```
sly schooner
#

Here

#

Great job mate

orchid frigate
#

Yea I finally figured out how to make my text slightly more readable

#

I need to use transform.translate more it's pretty useful

sly schooner
#

Yeah, but what I need to find is the next destination for the AI. Not to manually move it

orchid frigate
#

Yea right I forgot about that

sly schooner
#

I tried using moveDir as the next destination

#

But the npc runs towards the enemy instead of running from it

#

Sometimes it does work

#

But only if the stars are aligned

orchid frigate
#

Unity is janky af sometimes in 3d, maybe try -moveDir so it returns the negative value(I'm talking about this new moveDir)

sly schooner
#

It didn't work

orchid frigate
#

So what other code do you have for the ai movement, maybe the problem comes from the fact that you are trying to walk towards and away from the player at the same time

#

Do you have like an idle movement script that just moved the enemy in random directions

#

Moves*

sly schooner
#

No. I think the problem is in the destination itself

#

Anyway, I think it's not a bug, it's a feature. It doesn't need to be fixed

#

Thanks for your help

orchid frigate
#

Sorry I wasn't able to help in doing what you wanted, hope you have alot of fun while working on your game

sly schooner
#

It's alright

crystal turret
#

For anyone who knows Discord.py (Or just Python), how do I add a list to json?
right now, I have

TestUser[str(user.id)]["wins"] = 0

where TestUser=message.author.id

and I get: TypeError: 'int' object is not subscriptable

wet girder
#

then you can change the data in the dictionary easily

wet girder
orchid frigate
#

Python looks so complicated

wet girder
#

well dictionaries are a bit complicated true

orchid frigate
#

Also how do you make the text look like like that

#

Like code

wet girder
#

like this

crystal turret
#

you add three ` around your text on the top, and bottom

wet girder
#

@crystal turret did you understand what I told btw or do you need more help, I'm more than happy to help

orchid frigate
#

Aight thanks

crystal turret
#

To make this a int

TestUser[str(user.id)]["wins"] = 0

would I do

TestUser[int(user.id)]["wins"] = 0
#

or is there another way

#

After you create the empty dic

wet girder
#

lemme write yoy some code and explain it a bit better

crystal turret
#

ok

wet girder
#

I use this stuff on amp a lot

crystal turret
#

Most of the code I wrote for the json is from a youtube video about how to make a economy bot, which is not the bot I am making

#

I know the basics of what it does.

orchid frigate
#
Console.WriteLine("test");
#

Ah that's nice

crystal turret
#

Lol

#

makes writing code on discord a lot better

wet girder
#

my pc is taking ages to boot so thw code will take a minute

crystal turret
#

ok

wet girder
#
#create dictionary. Prefered way would be to use json but for the sake of showing concept we create dictionary at the start
winnerList = {
    "wins": ["1234567890": 0, "0987654321": 0]
}

#To change add one win to someone you do this
winnerList["wins"][id] += 1

#To add someone to the list you do this
winnerList["wins"][newUsersId] = 0

This should explain it a bit better

#
        #get data from database
        ref = db.reference("topic")
        topics = ref.get()

        #create list of approved suggestions
        allowedList = {}
        for id in topics["topics"]:
            if topics["topics"][id][1] == True:
                allowedList[id] = topics["topics"][id][0]
        
        #save list to cache.json
        with open("cache.json", "w") as f:
            json.dump(allowedList, f)
            f.close()```
Here's actual example from my code of this being used but just with firebase
crystal turret
wet girder
crystal turret
#

Ah thank you

stark ravine
#

🗿

#

Time to blow my head

orchid frigate
#

@stark ravine pathfinding in unity is done by navmesh, how it's done is that all AI get a MavMeshAgent which kinda controlls em and alot of game objects get a nav mesh component which tells the ai where it can walk and where it cant

#

More specific instructions for the AI are done manually by code

stark ravine
#

So have you ever trying to code one

orchid frigate
#

One what

stark ravine
#

Pathfinding

orchid frigate
#

If you mean instruction, here is an example:

#
Void OnCollisionEnter(Collision collision){
     If(collision.gameObject.name("player"){
           TakeDamage(10);
     }
}```
stark ravine
#

🗿 fall damage code?!

orchid frigate
#

Uhhhh

#

Ok so

stark ravine
#

🗿 go on

orchid frigate
#

The way I do it is that I check if the player has a velocity on the y axis more then a certain number (if the acceleration script is setup) and then when the player collides with the ground I take damage

#

There is another better way

#

But more complicated

stark ravine
#

hagrid tell me

north dune
#

i that it typical

#

is*

orchid frigate
#

We check for how long the player has been falling

#

And on collision take damage

#

If the player has been falling for long enough

north dune
#

but i think high velocity has a chance to skip collision sometimes by default or something right?

#

have to be finicky with it

orchid frigate
north dune
#

ahh thats smart

orchid frigate
orchid frigate
astral basin
#

more like 3d multiplayer xzibit

orchid frigate
#

Random walking animation
No walking animations look like
Clipping through trees

astral basin
#

trying to interpolate where the other players are gonna go

#

and then the other players lagging out

orchid frigate
#

dont know how i messed up this bad but i do know that he is flyin

wet girder
#

lol

long cedar
#

hey fellow coders does anyone have experience with tensorflow?

keen shell
long cedar
#

Okay, well I got recommended I use it, since I have to simulate neural networks in my project

#

It it difficult or why did you change

keen shell
#

It was mostly because of the course I was following, the guy kept saying I didn't have to remember anything so I didn't feel like I was learning anything

#

And when it became more difficult that didn't really help much

long cedar
#

Guess I have to see for myself

prime raptor
#

what is chunk dirty??

stark ravine
#

Hm

north dune
# prime raptor what is chunk dirty??

"dirty" things need "cleaned" aka updated

in this game its used to mean something needs checked behind the scenes for an updated value or changed behaviour

glacial cliff
unreal escarp
orchid frigate
#

just a lil enemy stats script i made, if anyone is learning unity and is wondering how to create a script to damage enemies or players you can use this

using System.Collections;
using System;
using System.Collections.Generic;
using UnityEngine;

public class EnemyStats : MonoBehaviour
{
    public double enemyHealth = 150d;
    public double enemyDamage = 0.5;
    public float enemyMovementSpeed = 1;
    public float maxShootDistance;
    
    
     public void EnemyTakeDamage(double damageSource){
         enemyHealth -= damageSource;
     }
}```
prime raptor
#

bruh

keen shell
#

I want to make an 8 bit like 2d fireworks game

#

fireworks in 2d would probably not look as good as in 3d tho

bold rover
#

Wait maybe you mean a different thing

keen shell
#

yes

bold rover
#

Ow...

keen shell
#

the textures gonna be hard to make look 3d ish I think

bold rover
#

So 3D base game that has a 2D art style mixture

#

Nonetheless interesting concept

keen shell
#

I think something like literal orthographic view like what mario and people playground have is what i want

bold rover
#

Ow

#

Also How's the ML and DL agents?

keen shell
#

haha haven't done it yet

#

haven't been down to do much lately but started on worldbox again yesterday and it was going fine I guess

bold rover
#

That's cool...Nonetheless your game concept is interesting

keen shell
#

thanks

bold rover
#

It probably depends on the player POV, And How it's gonna faction.Cool

#

Have a great day to

keen shell
#

Tyheartwb you too

pallid shadow
#

What is better to make an app java or javascript?

wet girder
#

Android app totally java or kotlin but for iOS you have to use Swift

orchid frigate
#

You could also try c# in visual studio

wet girder
#

That's not preferable at all tho

orchid frigate
#

I used to create apps on c# and I am able to agree 100%

#

It's way too easy

keen shell
#

I think I'd rather use Unity

orchid frigate
#

How do you make apps in unity Thonk

keen shell
#

Just like games I guessxzibit

#

Why wouldn't it be possible to make an app in Unity

orchid frigate
#

This app would load 2000 years and would cost to make so that it doesn't have the "made in unity" at the start

#

But other then that no reason

#

In reality it would probably be easier to make

keen shell
#

Ohh right the unity start, that's unity pro or something?

#

Idk how it's called

orchid frigate
#

It is

#

And it costs a fortune

keen shell
#

Lol sucks

orchid frigate
#

Legit costs an arm and a leg to what I remember and that's just for a month

#

Like 200

pallid shadow
#

Cant i use java on unity?

keen shell
pallid shadow
#

I would like to use unity for games

#

How hard is c#?

keen shell
#

Very easy imo

orchid frigate
#

Yes

#

In unity I'm pretty sure you can also use JavaScript and python

crystal turret
#

In python, I have a function, and inside of it is if statements and variables. If I change a variable value in a if statement, it doesn't carry to the other if statements? How would I allow a if statement to change variables to make it available for other if statements?

Sample code related

async def MyFunc():
  MyVar1 = 0
  MyVar2 = 1
  MyVar3 = 3

  if MyVar1 == 0:
    MyVar2 = 10
    MyVar3 = 13
  
  if MyVar2 == 10:
    print(MyVar3)

#Should print 13, but it would print 3

knotty root
deft anvil
#

Hm

trail ocean
#

16: 2 The markup in the document following the root element must be well-formed.

#

no idea what is wrong with that
1st one = Correct
2nd one = 16:2

hasty bane
#

when it nonlocal variable

knotty root
#

My friends, how can I make a texture pack for the Worldbox game? I would like to slightly change the color of the land, water and trees in the game

trail ocean
#

longest update log I've ever made :p

crystal turret
hasty bane
#

so true

#

also

#

global and nonlocal are different?

#

global is global

#

nonlocal is for nested functions

astral basin
#

local scope is for example in a loop

#
for(var i = 0; i < 10; i++) {
   Debug.Log(i);
}
// i doesn't exist here any more
#

You can define a local scope anywhere with {}

#
void someMethod() {
    {
        var i = 0;
        i++;
        Debug.Log(i);
    }
    // i doesn't exist any more
    {
        var i = 0; // this i is a new var
        i--;
        Debug.Log(i);
    }
    // i doesn't exist any more
    var i = 0; // this i is a new var
    i++;
    Debug.Log(i);
}
#

@hasty bane @crystal turret

hasty bane
#

is that python?

#

looks weird

#

pretty sure it isn't

#

uhh is that c

hoary hound
#

python doesn't have {}

hasty bane
#

yeah

#

i was just a bit confused since i was talking about python

hoary hound
#

could be c# or javascript, but idk if js has Debug.Log

hasty bane
#

what we learned from this is that local, nonlocal and global are slightly different in different languages

astral basin
#

this was c#

#

but it could just as well be javascript or other c like languages

astral basin
# hasty bane uhh is that c
function someMethod() {
    {
        var i = 0;
        i++;
        console.log(i);
    }
    // i doesn't exist any more
    {
        var i = 0; // this i is a new var
        i--;
        console.log(i);
    }
    // i doesn't exist any more
    var i = 0; // this i is a new var
    i++;
    console.log(i);
}
someMethod();

look just a few tiny changes