#⌨coders-cave

1 messages · Page 109 of 1

main brook
#

they don't just compile to native machine code

#

then they'll break the

#

"code once, run everywhere"

#

to be precise "build once"

#

Java have the class file

#

not sure with C# tho

fervent grove
#

any one knowe how to use numpy in python

rose pawn
#

Help

errant trail
#

dont use potato pc ez

rose pawn
#

I will upload the file here later and see if you can copy paste it

rose pawn
#

Ynshiskebsufhc

rose pawn
rose pawn
#

Reiiii

#

Is there a way I can see exactly which country a source link originates from???

#

Don't mind me saying rei I am asking this question to everyone

fervent grove
next lotus
#

holy shit i just woke up and damn

#

the standard libraries tell everything about a language and with the standard libraries java has, it tells a lot about the language 😂

#

intellij is WORSE that visual studio, you clearly havent tried visual studio

rose pawn
#

Beuh

#

How do I do this

next lotus
#

ever heard of android studio? its ran behind intellij and look at the first google results

rose pawn
#

Wow

#

Android studio

next lotus
#

thats very bad and inconsistent, strings when compared via == are references? then why not longs? ints? why do they not behave the same

rose pawn
next lotus
#

THEN WHAT'S THE POINT?? is java is not built to work on all platforms why choose it over C++, c++ doesnt hog a lot of ram and runs faster than a jvm

rose pawn
#

how do i put that text in python

#

sorry for intruppting

next lotus
#

ohwait

#

you mean turn it into a text?

rose pawn
#

no litteraly

#

put it in python

#

as a list

#

like copy pasting

next lotus
#

from .txt to list in python? you'rd have to read the file

rose pawn
#

i just wanna copy paste all that in to python and use it as a list

#

but my pc cant handle it

#

is there a way i can copy paste undisplayed texts??

next lotus
#

maybe you should read it?

#

like

rose pawn
#

i tried

#

it didnt work

#

for some error i didnt understand

errant trail
#

show the error to us

rose pawn
#

okay

errant trail
#

legends says that he is still trying to get the error

rose pawn
#

hey i cant copy paste it okay

errant trail
#

screenshot

rose pawn
#

i gotta write it mysefl

errant trail
#

ok

#

legends says that he is still writting the errors manually and dont just screenshot it

rose pawn
#

i cant find the ss image

#

where does it go

errant trail
#

just do
win + shift + s
and ctrl + v to paste the image

rose pawn
next lotus
#

what is that

rose pawn
#

oh i already had it

#

with open('C:\Users\DELL\Desktop\2095486.txt') as f:
lines = f.readlines()
print(lines)

errant trail
#

lmao it took you 10 minutes to get that

#

wrong unicode

rose pawn
#

what

errant trail
#

i forgot most python users dont know what those things are

rose pawn
#

whats wrong in the code??!?!?!??!

#

how do i change the unicode?!!!!!!

errant trail
rose pawn
#

i know that

#

but how does it break my code

errant trail
#

the code that reads the files are like compilers
and the type of unicode that the file uses is like the programming language

a c# compiler cant compile python scripts
and an utf8 reader cant read whateverunicode

the utf8 reader doesn't know other unicode exists so the error is saying that there is an error in the file

#

i explained the error now fix it yourself lmao

rose pawn
#

oqay

#

i will try

#

import codecs with codecs.open('C:\Users\DELL\Desktop\2095486.txt', encoding='utf-8') as f: for line in f: print repr(line)

#

same error

errant trail
#

the file is in a different encoding

rose pawn
#

how

#

its just .txt

errant trail
#

every file can have different encoding

rose pawn
#

how do i know which encoding it is

errant trail
#

i have no idea

rose pawn
#

aw man

errant trail
#

maybe you can check the files property (by right clicking it in file explorer)

#

teaching a python user how unicode works is pain

rose pawn
#

what is git bash

#

i searched online and usefull things say you gotta guess

rose pawn
#

maybe you can guess

errant trail
#

ah yes emojis and stuff that will narrow things down by alot

rose pawn
#

why is that red

distant wraith
rose pawn
#

emojis and everything

#

all weird letters and all that

#

can u guess now?

#

non existent guy

#

when i open it on notepad++ and press encoding

#

utf 8 is selected

#

so is it utf 8

#

?

#

then why doesnt it work

#

Noexistguy!??!?!

#

help

#

cat gal can u help

#

guys cmon it been nearly an hour

distant wraith
#

Why there's datetime in it

rose pawn
#

because i got the date time of it too

#

its a mix of data

#

non exist guy

#

thanks for teachimg me how to ss very helpfull

errant trail
#

np

#

also showing the data earlier would be helpful

next lotus
errant trail
#

yeah

errant trail
# rose pawn Noexistguy!??!?!

i was taking down the lemon cult with my desert eagle and my 5 staged intercontinental ballistic missile capable of holding 10 nuclear warheads with no way of launching it thats why im late

distant wraith
#

Or maybe just do something more easy

rose pawn
#

So how do i find the encoding

#

i put the file above earlier

#

you can download it

rose pawn
solar imp
solar imp
#

the more you can make a file abstract the easier it is to read, which is especially good for large teams

#

also it’s much more readable than other languages, every Java library uses camel case, and most libraries have detailed comments on what each function does, overall it’s just consistent

rose pawn
#

😠

solar imp
#

i don’t see why you’re hating on a language simply because of the purpose it has, it’s not meant to be the fastest or most efficient, it’s meant to be readable and easy to modify with teams

solar imp
solar imp
solar imp
solar imp
timid field
#

(noob ai)

rose pawn
rose pawn
#

Rei the genius

#

Save me

next lotus
#

java's standard libraries are composed of obsolete and legacy garbage while at least in c++ we have the std namespace are still relevant to this day

next lotus
next lotus
solar imp
solar imp
wild saffron
#

afaik, java isnt really good for games, its just more simpler without game engine but are much slower because its actually for normal apps and was first designed for tv remote

next lotus
wild saffron
#

the c language prolly have some upperhand but they are a lil hard for me xd

next lotus
wild saffron
solar imp
#

it makes no sense

solar imp
#

most sales + revenue lol

next lotus
wild saffron
wild saffron
#

from c++

#

opengl afaik first implemented in c++

solar imp
wild saffron
#

and afaik java is good for pc but is not too kind of androids and less powerful pc for games

next lotus
wild saffron
#

even though im literally trying to make a private "worldbox project" using java rn

solar imp
#

lol

next lotus
solar imp
#

wise words

wild saffron
#

the reason i havent use c# is becuz the compiler is not that lightweight only and i dont know are there any libraries that are downloaded there (prolly system.drawing)

solar imp
#

honestly cant be asked talking about this at this point

next lotus
solar imp
#

you basically ignored 99% of my points and you clearly haven't worked with java enough

next lotus
wild saffron
solar imp
wild saffron
#

prolly fixed if i have wifi

next lotus
#

you havent even explained well why String when compared by == is compared via reference and you told me to contact oracle lmfao

solar imp
#

if you read what i said you'd understand that

#

i extensively described that string is treated as a class in java, and therefore functions as a class

wild saffron
#

is it easier to learn c# or java

#

lol

next lotus
#

so you admit java is an inconsistent pile of garbage?

solar imp
#

probably c# since this guy's so hellbent on it

wild saffron
solar imp
#

bro its not garbage and it actually runs faster than c# iirc

#

💀

wild saffron
#

even though i program in it

next lotus
#

string is not treated as a primitive but int, long and double is?? whatt

wild saffron
solar imp
#

if you programmed java youd know there are Integer, Long, and Double classes

#

lmao

#

💀

next lotus
solar imp
#

honestly I just blocked for now

next lotus
#

why is there no primitive for string lmao

solar imp
#

i am a firm believer that you cant change people

next lotus
#

LMFAO HE CANT TAKE IT

solar imp
#

nothing i say is gonna change someone who is hellbent to prove their opinion is right

wild saffron
#

that wut makes me confused when trying to convert c++ into java

next lotus
#

java kids cant even defend their garbage of a language

next lotus
solar imp
#

no idea why so many programmers always have such an overinflated sense of superiority

wild saffron
#

ye

#

but some component can be translated

solar imp
#

basically his responses were all just saying "java is garbage" despite me extensively explaining why his arguments make no sense

wild saffron
#

i also have some problem with c# to java cuz the struct xd

#

actually different language different uses

next lotus
solar imp
#

i guess javas just too hard for some people, can't blame them for having a bias, albeit a bit rude about them

next lotus
#

if java so good then why unity uses c#

#

like dude c# is faster than java

#

its literally being used in game engines everywhere

solar imp
# next lotus like dude c# is faster than java

sorry just was really tempted to see what youre saying, no it's not, and unity uses c# because its cross platform, consoles dont have the java runtime environment installed and therefore cant use it 😃 gonna go back to ignoring ur messages now, just felt like making my point that you're being biased

next lotus
#

hmmmm i wonder who's this

next lotus
wild saffron
#

programming languages afaik:

  • Java app and for small data
  • C++ games and visual graphics
  • C# see java but u add several perks
  • C small procedural data
  • Python Large data
solar imp
#

honestly just gonna mute this channel, not interested in talking with a programmer with an overinflated sense of superiority and refusal to admit their opinion could be wrong smh

#

cya everyone, gn @wild saffron 👋

next lotus
#

bye lmao

wild saffron
#

bye uwu

next lotus
#

i swear if i see another java programmer

wild saffron
#

and afaik c# can be copied to java manually (for structs) and vice versa is easier, not a much of problem

next lotus
#

yep, code is almost the same

ocean yoke
half warrenBOT
#

Edit this to change the output of the custom command 12!

ocean yoke
#

also pyscript and net maui are gonna change the landscape I believe

ocean yoke
#

if only I know how to use it

wild saffron
#

else prolly i will use c#

#

like the others of course

ocean yoke
#

yeah just use unreal / unity it will get the job done

#

I am heavily using java rn

#

for my university projects

wild saffron
#

my pc dont have much graphic support

#

same*

#

for recreating worldbox (private purpose)

#

and for trying to make data program or smh but some parts of java are buggy

ocean yoke
#

data science should be done w python I think (w lib like numpy and pandas which are very OP)

#

and I suggest to recreate it in unity

#

I don't have much experience developing in unity

wild saffron
#

ye

ocean yoke
#

but I know a bunch about how unity works internally

#

and it seems like it would be a good fit

wild saffron
#

but i used java cuz available library and cuz its usually use in some apps

#

and its easier without game engine and quite useful-er than python

#

not as useful as c++ or c but simpler

wild saffron
ocean yoke
#

unity needs wifi?

wild saffron
#

the download*

ocean yoke
#

ah I see

#

are you on mobile data this whole time?

wild saffron
#

yeh pc mobile data connector

ocean yoke
#

damn

#

that's common here in Indonesia back in the day

#

like 10 years ago

#

but not so much anymore

wild saffron
#

ur lives a pun

ocean yoke
#

💀

#

(yes java is named after a javanese coffee LMAO)

#

how did you know about java, a foreigner rarely knows about the island all they know is Bali

wild saffron
#

lol searching

orchid frigate
#

C++/C AND rust are all really good for kernels and OS stuff

#

Which can be said for very few other languages

hasty bane
next lotus
#

there's a new js framework every second

errant trail
#

there's a new js framework every second

next lotus
#

i just realized how clean js can be if you know how to work on it, im currently working on js and im starting to love it lol

#

its just devs who write shit that makes js look incompetent

errant trail
#

i almost had a heart attack thinking this took 5 seconds to run

#

apparently using return this with an object containing fs 6 times takes just 5ms

#

🤔

barren shale
#

it shouldnt matter what it contains

#

its returning a reference

next lotus
#

maybe fs was a file operation?

errant trail
next lotus
hasty bane
#

^betrayed c#

next lotus
#

NOOOOOOOOOOOO

#

NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO

hasty bane
#

it's over

next lotus
errant trail
#

omg js is so bad!!!!!!!!!! just look at this code!!!!

im now one of the cool kids

#

0 died oof (1)

hasty bane
errant trail
#

Activate Windows
Go to Settings to activate Windows.

next lotus
hasty bane
#

real

next lotus
#

except those in indonesia those are good

#

like coffee

hasty bane
#

true

ocean yoke
#

and I am pretty sure it's applicable to rust and c++ aswell since they basically compiles very similarly

ocean yoke
#

(which uses react)

wild saffron
#

is java easier than javascript or vice versa

next lotus
#

but both are the lowest of the low

#

but hey at least you dont have to public static main(String[] args)

wild saffron
#

xd

#

wuts the best language other than c#

#

that can be implemented easily

#

without / with game engine

next lotus
#

c# is easier too, the newest version dont require an entry point so you basically can just

Console.WriteLine("Hello World");``` without a class or namespace
next lotus
#

the other language better than c# is a language called c#

wild saffron
#

is there is graphic library there ?

next lotus
#

wdym, what do you need in a graphics library?

#

if you want for images there is System.Drawing

#

if you want something more cross platform there is Skies

wild saffron
#

are there any other compiler for c# other than Visual Basic and Unity ?

next lotus
#

i mean there are just countless graphics libraries

wild saffron
#

yes

#

and is c# easier than java

next lotus
#

.net framework - old, preinstalled in windows
.net core - new, runs on everything cross platform
mono - used by unity

next lotus
#

of course

#

what do you need to use it for anyways

wild saffron
#

how to run .net ;-;

#

game making prolly

next lotus
#

download unity then lol

#

you wont need vs for unity

wild saffron
#

without game engine* (unless its 3d)

next lotus
#

but

#

that doesnt make sense

#

if it doesnt have a game engine then

#

wait

#

u mean

#

console?

wild saffron
#

my pc isnt that good, will unity work xd

#

yeah using that

#

system.drawing also

#

the next thing is can u place image in system.drawing ?

next lotus
#

just use unity

#

is the game 3d?

#

if your pc cant handle unity, then it cant handle 3d development in general

wild saffron
#

oof yes

next lotus
#

but im sure it will handle unity

wild saffron
#

my pc can handle 3d but not making the models

#

and i havent download unity cuz uhhh

#

yeah i used mobile data to pc

wild saffron
next lotus
#

unity has its own renderer ofc

#

i dont have much experience in unity

wild saffron
#

cuz when i used java there is this "java.awt.image.BufferedImage and bla bla bla i/o "

#

i mean in the compiler

#

not the unity ;-;

next lotus
#

yes unity is shipped with its own compiler Mono which is independent on the .net framework

next lotus
wild saffron
#

xd ye

next lotus
#

that thing hasnt been updated for 20 years

wild saffron
#

thats the problem

next lotus
#

LMAO DUDE I FEEL YOU

wild saffron
#

XD

next lotus
#

like why is jlable used FOR SHOWING IMAGES???? A FUCKING LABEL??

#

you cant even control image size

wild saffron
#

i tried recreating worldbox "using perlin noise" and (private uses),

#

oh u can control afaik

#

but not the quadruple points

#

or u can control quadruple points but quite hard

next lotus
#

you have to manually resize the goddamn image what's the point of a control library if there's no control for showing image?

wild saffron
#

and also the problem with java is the output / input thingy

#

idk if c# fix it

next lotus
#

sure what's the problem

wild saffron
#

so it can create a new text file but

#

when i try append to it

#

it cant

#

xd

next lotus
#

you might wanna do streams for that

#

c# has a very straightforward api

wild saffron
#

lol

next lotus
#
using (StreamWriter w = File.AppendText("myFile.txt"))
{
  w.WriteLine("hello");
}``` like this
#

appends string without overwrite

wild saffron
#

yeah ty

#

wait back to the question can u post image to a c# windows using a c# compiler ?

next lotus
#

if you dont want streams and just wanna write a small piece of text you can
File.AppendAllText(@"c:\path\file.txt", "text content");

next lotus
wild saffron
#

wut is that

next lotus
#

a ui library something like

#

this

wild saffron
#

oh ok

#

is c# faster than java in other os or only in windows ?

next lotus
#

c# is faster of course

#

alright look

#

asp.net core is second fastest web framework

hasty bane
#

all of these are suspiciously close

errant trail
hasty bane
orchid frigate
#

However rust is kinda like the new kernel language

#

The compiler is extremely customisable and the language has many libraries or crates for os stuff

#

Like alot

#

Alot more than C or c++

#

There are wrappers around most bootloaders too

rose pawn
#

Guys help me ffs

#

*Please

rose pawn
next lotus
#

why does that matter, from the looks of it, it can work on ascii

#

try utf8

ocean yoke
knotty root
#

I have the full Legendary team of attacks tools

timid field
#

I tried linkedin quizzes for programming languages

#

I failed all languages i knew in the past

#

And succeeded in c# which i started days ago

rose pawn
#

Bluh

frigid pivot
#

@rose pawn yeyehaha

next lotus
timid field
#

I legit failed in Unity even tho its where i learnt c#

#

(not all wrpng answers were code related)

wet girder
#

you have easier time knowing the answers with less experience

#

or well ofc it's easier with shit ton of experience

hollow bronze
#

get good at answering tests with very specific questions
or
get good at making things with unity

#

experience in unity is superior than quiz knowledge

hoary hound
#

get good at answering tests with very specific questions
you just summarized university/college lol

barren shale
#

i get higher than average marks

#

but I study less than average

#

im just good at answering questions

timid field
#

Happened too many times wbsuffer

distant wraith
timid field
#

Luckily i note everything i discover like bug fixes, ideas and etc

orchid frigate
#

Looking at this chat i realise

#

Damn I dont take coding seriously

#

At all

#

I code like once a week

#

While drunk

#

And if I get a bug I just stop coding and return 2 weeks later

edgy tundra
#

A

main brook
#

imagine taking notes

#

i don't

wheat warren
#

Nerds

main brook
#

says the guy with a tank pfp

rose pawn
#

Reo

#

How do i find the encoding of a file

#

Ew im a wolf

#

Jupe downgrade me to chicken

orchid frigate
#

how have you yet to find the solution

#

it has been

#

like 3 days or more

wet girder
wet girder
wet girder
#

there

rose pawn
#

Wowa thanks jupe

wheat warren
#

Should i learn python guys?

orchid frigate
#

Learn assembly

#

Or

#

Learn how to write programmes byte by byte

wheat warren
#

Ok

next lotus
#

assembly works too but goodluck with that

barren shale
hoary hound
#

After having had to learn assembly risc v, Intel and ARM I say, don't learn assembly, you will never write better code than the compiler

#

Unless you are very interested in low level stuff and want a better understanding on how it works

hasty bane
#

its easy and it is pretty useful

wheat warren
#

Ok

next lotus
#

but in the long run you'll end up using c++ or c#

wet girder
#

depends

#

not everyone needs those languages

#

python is good for data science for example

#

or scripting in cyber security

next lotus
#

the best stack overflow answer

hasty bane
rose pawn
orchid frigate
#

not entirely true

#

the compiler does ALOT of optimisations

#

which can be quite damaging depending on what you are doing

#

even when you explicitely tell it not to do any its still not perfect

grave patrol
#

idk how to code

knotty root
#

skill issue

#

git gud

scenic pagoda
#

I know some very basic python, does anyone have any tips?

rose pawn
#

Best tip ppl here can give you is "swithx to #C!!!1!1!1" 🤓 🤓 🤓 🤓

#

They can also fix your entire code every day because u are too lazy to do so but mostly "switch to sharp sea!!!1!1!"

hoary hound
#

Even then are you really going to change the assembly by yourself?

orchid frigate
#

all im saying is

#

depending on the project

#

you may want to use assembly rather than a high level language

#

like when you want to do very low level stuff like writing to ports

#

which C cant do

#

and the inline asm is trash

hoary hound
#

The closer you get to the machine the more you have to speak its language of course, but most beginners usually don't go there to start learning programming, as you lack understanding of many programming or generally computer concepts

hasty bane
#

come up with smth

#

try to make it

#

google things

#

dont be like kerim and try to get people to do your work for you

next lotus
orchid frigate
#

c# is like a plague

#

when it infects someone

#

that someone is a gonner

next lotus
next lotus
#

c# is perfect, everyone seeks perfecrion

orchid frigate
#

no

#

It cant d

#

o

#

kernels

#

nor bootloaders

#

nor anything low level

#

so

#

not perfect

next lotus
#

as if thats a problem :')

orchid frigate
#

that is

#

if it was perfect

#

like rust

#

it would do anything

#

from web

#

to kernels

#

and even bootloaders if with limine or multiboot

orchid frigate
#

you dont need any prior programming knowledge to understand the concepts

#

for instance show your average c# enjoyer some assembly or make them look through the bytes of a program

#

or even make them flip a bit

#

they will have no idea what to do

next lotus
#

i mean sure man keep writing a new kernel we're here writing games, backend and traning neural networks lol

orchid frigate
#

lmao

#

so

#

I only mentioned os development

#

1 time

#

if even that

#

yet you somehow thought I was talking about that

#

so ima ask you

#

how many times do you think as an os dev have I needed to look though the bytes of a program

#

if you guessed none

#

you would be correct

#

all of these things are things that everyone needs to know atleast the basics of

#

because they can help you in every case

next lotus
#

you have a compiler that optimizes and makes sure everything works well

#

thats what compilers do dont they

orchid frigate
#

how many times have you written something

#

in assembly

orchid frigate
#

im sure thats interesting at this point

#

btw im not only an os dev

#

I also know graphics APIs

#

but im sure you will find a way to make that look bad too because your favorite language sadly doesnt have any good wrappers around any good api

next lotus
#

anyways i dont see a point in remaking the wheel

orchid frigate
#

tell me one api that has a good working wrapper in c#

#

the opengl one sucks

#

I tried it and

  1. Using pointers in c# is pain
  2. It didnt work for half the things
barren shale
#

nobody uses opengl in C#

#

opentk is a thing

orchid frigate
#

I dont exactly remember why opentk is shit

#

But I remember that opentk is shit

rose pawn
#

Try not a act like a cult for 5 minutes challenge

#

I'm opening my new cult

#

"Helping people find the encoding of files cult"

#

I will spread like a plegue

orchid frigate
#

I cannot believe

#

you are still stuck

#

to this problem

#

and have made 0 progress

#

and are still actively looking for help

#

its...sorta inspirational actually

fleet flower
#

Is there a way to skip time on mobile?

ocean yoke
#

c++ and rust ftw

#

wait those two communities don't mix together very well...

#

👀

ocean yoke
#

for large and reusable code, yes

#

but for minor cases, especially patching and rewriting a function using library like minhook to hook the function you could improve stuff

#

but you are kind of true that speed shouldn't be the your main reason of learning assembly

#

I have been dealing w assembly codes for 3-4 years now (mostly x32, occasionally x64, but never asm)

hasty bane
knotty root
wispy vale
#

i need some help

next lotus
#

what language

wispy vale
#

im tryna make an item using war box mod

next lotus
wispy vale
#

no ones online i gues

#

so i came here

next lotus
#

well this channel is mostly dedicated for the c# cult but sure

wispy vale
#

im havin g this error

next lotus
#

can you show code

wispy vale
#

sure

#

using System;
using NCMS.Utils;
using NCMS;
using UnityEngine;
using ReflectionUtility;
using System.Threading;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HarmonyLib;

namespace NewBox{
[ModEntry]
class Main : MonoBehaviour{
void Awake(){
Button.init();

    public void Update(){
      Equipment();
    }
    static string civId = "unit_human" + "unit_elf" + "unit_orc" + "unit_dwarf" + "baby_human" + "baby_elf" + "baby_orc" + "baby_dwarf";
    void Equipment(){
      var Units = MapBox.instance.units.getSimpleList();
      foreach(var unit in Units)
        {
          if(civId.Contains(unit.stats.id)){
            var pSlot = unit.equipment.getSlot(EquipmentType.Amulet);
           if(pSlot.data.id == "Cross"){
                WorldTile pTile = unit.currentTile;
                MapBox.instance.CallMethod("getObjectsInChunks", pTile, 5, MapObjectType.Actor);
                var temp_map_objects = Reflection.GetField(MapBox.instance.GetType(), MapBox.instance, "temp_map_objects") as List<BaseSimObject>;
                for (int i = 0; i < temp_map_objects.Count; i++)
                 {
                   Actor actor = (Actor)temp_map_objects[i];
                    if(actor.stats.id == "demon" || actor.stats.id == "ghost"){
                    actor.killHimself(false, AttackType.Other, false, true);
                    WorldTile pTileActor = actor.currentTile;
                    MapBox.instance.fxDivineLight.playOn(pTileActor);
                    }
                  }
              }
         }
    }

}
}
}}

#

public and static ,why dont they work

next lotus
#

look

wispy vale
#

yes

next lotus
#

you missed a } on line 21

#

try this

#
using System;
using NCMS.Utils;
using NCMS;
using UnityEngine;
using ReflectionUtility;
using System.Threading;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HarmonyLib;

namespace NewBox {
  [ModEntry]
  class Main: MonoBehaviour {
    void Awake() {
      Button.init();
    }
    public void Update() {
      Equipment();
    }
    static string civId = "unit_human" + "unit_elf" + "unit_orc" + "unit_dwarf" + "baby_human" + "baby_elf" + "baby_orc" + "baby_dwarf";
    void Equipment() {
      var Units = MapBox.instance.units.getSimpleList();
      foreach(var unit in Units) {
        if (civId.Contains(unit.stats.id)) {
          var pSlot = unit.equipment.getSlot(EquipmentType.Amulet);
          if (pSlot.data.id == "Cross") {
            WorldTile pTile = unit.currentTile;
            MapBox.instance.CallMethod("getObjectsInChunks", pTile, 5, MapObjectType.Actor);
            var temp_map_objects = Reflection.GetField(MapBox.instance.GetType(), MapBox.instance, "temp_map_objects") as List < BaseSimObject > ;
            for (int i = 0; i < temp_map_objects.Count; i++) {
              Actor actor = (Actor) temp_map_objects[i];
              if (actor.stats.id == "demon" || actor.stats.id == "ghost") {
                actor.killHimself(false, AttackType.Other, false, true);
                WorldTile pTileActor = actor.currentTile;
                MapBox.instance.fxDivineLight.playOn(pTileActor);
              }
            }
          }
        }
      }
    }
  }
}
wispy vale
#

hold up all i saw was errors

#

i think this worked but another problem was an icon with the same key was aadded in resources now

next lotus
#

because the code is messy, you might wanna clean it a lil bit

wispy vale
#

yes.....

wispy vale
#

another help

next lotus
#

ok

wispy vale
#

class Button
{
public static void init()
{

      GodPower CrossPower1 = new GodPower();
      CrossPower1.id = "CrossPower1button";
      CrossPower1.name = "CrossPower1button";
      CrossPower1.forceBrush = "circ_0";
      CrossPower1.holdAction = false;
      CrossPower1.showToolSizes = false;
      CrossPower1.unselectWhenWindow = false;
      CrossPower1.click_action = new PowerActionWithID(action_CrossPower1Click);
      AssetManager.powers.add(CrossPower1);

      var CrossPower1But = NCMS.Utils.PowerButtons.CreateButton(
      "CrossPower1button",
      Mod.EmbededResources.LoadSprite($"{Mod.Info.Name}.Resources.Icon.icon_Cross1_bone.png"),
      "Cross1",
      "Give a unit a Cross1",
      Vector2.zero,
      NCMS.Utils.ButtonType.GodPower);

      NCMS.Utils.PowerButtons.AddButtonToTab(
      CrossPowerBut,
      NCMS.Utils.PowerTab.Kingdoms,
      new Vector2(1082, 18));
      }'
#

cross powerbut doesnt exist in current context

#

what should i change it to

next lotus
#

alr look can you format the code

#

type it like this

#

``[code here]``

wispy vale
#

how

#

this works i guess

#

@next lotus

mint igloo
next lotus
#

i dont do worldbox mods

wispy vale
#

its cleared

#

thanks for ur concern bro

rose pawn
#

Make an automatic file encoding determinor on #C

next lotus
rose pawn
#

Can you do it with my file

next lotus
#

dude look

#

if you can

#

open that file in notepad

#

theres a 99% chance thats utf8

#

and anything can read it

knotty root
#

k

timid field
#

made some loading UI for my game

#

still trying to make a decent game menu UI

mossy acorn
#

Hello

timid field
main brook
rose pawn
#

Man i miss annoying people on this channel

#

Hopefully i will get back to working on my code soon

#

Ive been really lazy lately

timid field
#

My unity project broke while i was watching youtube

#

Project refused to open so had to create new one and move all sh** and stuff and reapply some unapplied stuff

next lotus
#

this channel is better dead if it's not talking about c#

orchid frigate
solar imp
timid field
#

Not after all what i have spent for my game

timid field
#

I have decided to add tarot cards almost like from jojo for my game for a specific use

next lotus
#

ayo did someone say jojo

#

mudamudamudamudamudamudamudamudamudamudamudamudamudamudamudamudamudamudamudamudamudamudamudamudamudamudamudamudamudamudamudamudamudamudamudamuda

#

oraoraoraoraoraora

west echo
#

Worldbox do they really write in Java ?

hoary hound
west echo
#

mix up

#

c# is very similar to java

orchid frigate
#

so like I was joking about learning quantum programming a few days ago but

#

the more I think about it

#

it just makes sense I learn it

orchid frigate
#

ohh shii there is q#

#

im sure yall c# fans will enjoy this...it appears to not be very similar to c#

next lotus
#

wait wtf is q#

#

wait what is this

main brook
#

get solved

#

its literally like bogosort

#

but since its on quantum level

#

its fast

rose pawn
#

Can you merge two programs written in two different languages

main brook
#

yes

#

its called

#

an API

knotty root
#

I cant change the language to finnish in this server!

orchid frigate
#

C#

#

As a quantum language

#

But in python for some reason

next lotus
#

in c# we have Process and StandardOutput and StandardInput which we can write and read from thr process, python has subprocess too

#

or you can use sockets and communicate 2 programs via udp

#

if u have complete control of the other process that is

cloud solar
#
from datetime import date
import speech_recognition as sr
import os
r = sr.Recognizer()
mic = sr.Microphone(device_index=1)
import pyttsx3
tts_engine = pyttsx3.init()
voices = tts_engine.getProperty('voices')
tts_engine.setProperty('voice', voices[1].id)
tts_engine.runAndWait()
def listening():
    print("listening...")
    audio = r.listen(source)
    output = r.recognize_google(audio)
    return output
def AImessage(message):
    tts_engine.say(message)
    tts_engine.runAndWait()
    r.pause_threshold = 1
with mic as source:
    r.adjust_for_ambient_noise(source)
    AImessage("Hi")
    output = listening()
    if output == "hello":
        AImessage("How can i help you?")
        output = listening()
        if output == "what time is it":
            AImessage('its ' + str(date.today()))
        elif output == "open app":
            AImessage("what app should i open?")
            os.system(listening())
#

if by any chance someone would want to make answering bot in python

rose pawn
#

:0

main brook
#

so you can use that to bridge

knotty root
#

May I use this form an assignment plz?

main brook
#

qhat

#

what

cloud solar
# cloud solar ``` from datetime import date import speech_recognition as sr import os r = sr.R...

here ya go:

from datetime import date
from multiprocessing.connection import Listener
import speech_recognition as sr
import os
r = sr.Recognizer()
mic = sr.Microphone(device_index=1)
import pyttsx3
tts_engine = pyttsx3.init()
voices = tts_engine.getProperty('voices')
tts_engine.setProperty('voice', voices[1].id)
tts_engine.runAndWait()
def listening():
    print("listening...")
    audio = r.listen(source)
    print("Translating your speech...")
    output = r.recognize_google(audio)
    return output
def AImessage(message):
    tts_engine.say(message)
    tts_engine.runAndWait()
    r.pause_threshold = 1
def WaitForActions():
    AImessage(" How can i help you?")
    output = listening()

    if output == "what date is it":
            AImessage('its ' + str(date.today()))    
    elif output == "open application":
            AImessage("what app should i open?")
            os.system(listening())
    elif output == "do speech test":
            AImessage("Test started")
            message = listening()
            AImessage("I think you said "+ str(message))
    elif output == "exit code":
            print("quitting")
            exit()
    else:
        AImessage("I didn't understand,")
        WaitForActions()
        

name = "Pit"
with mic as source:
    r.adjust_for_ambient_noise(source)
    AImessage("Welcome back  "+ name)
    output = listening()
    if output == "hello" or "hi" or "welcome":
        WaitForActions()
            
#

another version

#

feel free to copy

cloud solar
#

btw how should i name the bot?

knotty root
#

Not google

tidal elbow
#

love how the company i work for was spending £100+ per month on a service i recreated for free

#
        args = passport_parser.parse_args()
        image = args['file'].read()
        try:
            mrz = read_mrz(image, save_roi=True)
        except ValueError:
            return {"result": [{"prediction": []}]}

        if mrz is None:
            return {"result": [{"prediction": []}]}

        
        return {
            "result": [
                {
                    "prediction": [
                        {
                            "label": "MRZ",
                            "ocr_text": f"{mrz.country}{mrz.date_of_birth}"
                        }
                    ]
                }
            ]
        }
#

also, github co-pilot is cool

drowsy pulsar
#

.

barren shale
#

i would make the service then recommend them the service as a better and cheaper option

#

and then make 90 per month

tidal elbow
#

we did consider it

#

we were like

#

god we shoulda said we found an alternative service for half the price

rose pawn
#

Coders cave more like coders crave (for someone to ask for python help)

hasty bane
#

but also weird and i dont like

violet edge
#

@cursive abyss

violet edge
long eagle
#

hi i want help

#

why does my public float dont shows up in the inspector

#

im using unity

balmy wadi
sharp birch
#

This message is here now bois

rigid magnet
#

I like coding I still need help trying to change the source code and accessing hidden files

#

To hidden stuff in the base game

hollow bronze
split parrotBOT
rose pawn
#

How do you make an annoying discord bpt

#

Using python

main brook
#

just

#

make it

rigid magnet
hollow bronze
#

then clarify what you're modifying

#

otherwise people will assume you're talking about worldbox which lots of people do in this channel

#

also we just cant help any without any information

long eagle
main brook
#

read the goddamn

#

channel name

#

@long eagle

#

and not smashed into one

long eagle
#

I KNOW IT\

#

i asked for help this and then this guy said #🔧mods and then i answered this is not about mods as i am telling him im not questioning mod

main brook
#

ah

#

well

#

you're also being vague

long eagle
#

yeah

#

i know

#

btw

main brook
#

hm?

rose pawn
#

I like this knight guy

main brook
#

you mean

#

haydot?

rose pawn
#

What did a #C programmer say to a python programmer?

next lotus
#

uh

#

they cant see sharp

#

lol

left leaf
long eagle
#

i found the problem, i dont save my script

#

nobody says i need to save my script

timid field
#

Guess what happened

#

ANOTHER FRICKIN WINDOWS 10 UPDATE

#

That turnt off my unity project

#

Its annoying

#

To keep using backup scenes

orchid frigate
#

What but

#

It warns you

#

Before updating

next lotus
#

i thought windows 10 only updates every shutdown

barren shale
#

it does

#

but if you dont update for a while

#

it will schedule a restart

#

you can decline

#

but you probably didnt read the prompt and just hit accept

orchid frigate
#

if there is one thing I like about windows

#

its the updating

#

as you said it schedules a time for a restart which is super cool

#

and it doesnt really go into your face constantly asking you for an update unless you havent updated in like

#

2 years

hasty bane
#

and when it updates it breaks your gpu drivers

orchid frigate
#

eh havent had a problem with that yet

hasty bane
#

happened to me once kek

timid field
#

But i had i tripped on the wire that connects electricity to my pc

#

When i started it gave me the stupid getting windows ready

delicate grove
#

:)

wild saffron
#

how to make c# game loop

#

i tried but it didnt work

timid field
#

I wish if microsoft made windows 10 updates frickin not annoying

dire loom
manic bane
#

ayo with what language is worldbox made? (im new to coding and stuff just wanna know)

hasty bane
#

c#

next lotus
#

c#

knotty root
#

c#

bitter stratus
#

c#

manic bane
#

so would it be possible if they for example didn't use c# but c++ would there be any difference in how difficult it would be more diff or less?

next lotus
#

but look

#

with c# you wont have to deal with pointers and manually write everything

#

unity compiles c# to native code using il2cpp

manic bane
#

so what if I want to make a game like worldbox/Rts game

#

is c# better

#

bcs I wanna do a fullcourse but dunno which one

next lotus
#

do c# my boy

#

the entire .net framework is all you need

manic bane
#

alright bro tnx

next lotus
#

need game development? unity
need a web framework? asp
need mobile, desktop, macos, linux, ios app development? maui

#

np bro

orchid frigate
#

dont listen to the c# fanboy

#

yes c# is good

#

but its always nice to also know other languages

#

or to try other languages

#

you know find the one you like

hoary hound
#

rip free copilot

#

nevermind, being a student has its perks attractive

hasty bane
#

screw you github im gonna make so many code snippets your ai wouldnt even be able to compete

pulsar phoenix
#

Some one teach me to code for a joke

timid field
half warrenBOT
#

User reported to the proper authorities!

hollow bronze
#

kek someone tried to advertise a crypto spam/scam here (they got banned), they really picked the worst time ever to do so

hasty bane
main brook
#

C# is good

#

multipurpose

#

but doesn't always have a "good at"

#

in some part

#

its the issue with all things

#

you could be proficient at something but not something else

#

jack of all trades is

#

okay ish at everything

#

it does the job just not as good as the proficient one

next lotus
next lotus
#

you can be proficient at something and be proficient at another

molten musk
#

Hi

fallow wasp
#

I don't know if this is the right place to ask, but does anyone know how to fix a problem where you accidentally merge a Drive and the Downloads folder into one?

#

I would show an image, but as it turns out I cannot images

rigid mulch
#

anyone here good with unity

rose pawn
#

Rei

urban zodiac
rigid mulch
#

are u on a black berry

#

the literal fruit

wet girder
#

that's bs

rigid mulch
wet girder
#

still not light

rigid mulch
#

its mostly for indie games i dont mean light as in doesnt have many features/ cant handle what it does

#

theres insane stuff using unity like boneworks

urban zodiac
rigid mulch
#

nanner?

urban zodiac
rigid mulch
urban zodiac
#

I have Linux operating system on a windows pc!

rigid mulch
#

ive heard linux is better but havent took the time to really check it out myself

urban zodiac
#

I have changed a chrome book to a windows laptop then uninstall windows and install Ubuntu!

main brook
#

cool

#

this is a war

#

channel

next lotus
#

genshin impact too

rigid mulch
#

but typically alot of indie devs use it thats why i had to specify that lots of big games like boneworks used it aswell

#

light wasnt the best word more so accessible or versatile for smaller devs

main brook
#

its made easy for everyone

#

that's why most games are indie

next lotus
#

exactly

main brook
#

because others doesn't provide the same experience

rigid mulch
main brook
#

and etc

rigid mulch
#

things like unreal are more popular for bigger studios you dont see many indie devs working with that

#

and its harder to learn

main brook
#

yes it is very complex

#

but also works better for those type of game so

#

yeah

rigid mulch
#

i like unity very fun to mess around with

main brook
#

haven't used unity

#

the only game engine i used is

#

godot

rigid mulch
#

i made this monkey for a project

main brook
#

very interesting its a monke

#

where banana

rigid mulch
#

well the monkes are kinda bad/ trained to attack u

#

so you kinda have to explode them

#

in a gory fashion

main brook
#

i like

rigid mulch
#

monkeys do nothing but screech and steal stuff so its acceptable

main brook
#

not really

rigid mulch
#

except proboscis monkey they are cool

main brook
#

they survive

#

their screams are actually a form of communication

#

literally like ours

main brook
#

pretty cute actually

#

that monkey

rigid mulch
#

i made him really happy in photoshop

main brook
#

that looks like something but i don't know what

rigid mulch
#

its sammy thats what it is

#

sammy the proboscis monkey

#

yes i gave him a name

next lotus
#

ballsack

#

lol

hollow bronze
#

certain game types also just need their own to run smooth

#

like teardown/noita I believe are their own engines

next lotus
#

like league of legend

hollow bronze
#

but uh unless you got the manpower or the willpower to do that

#

unity works fantastically for loads of stuff we'd normally encounter

#

and makes it approachable

#

I mean loads of games from small groups of people are popular from unity. The advantage of being able to come up with interesting and unique concepts fast/easy due to the process

#

I haven't worked on unreal myself, but by the looks like a good place to make a game that looks/functions triple A without having to make an entire new game engine or anything like that

#

also has great video rendering/simulation stuff beyond games

#

both are excellent creation tools that really depend on what you're doing for them to benefit you

next lotus
covert jewel
#

traiteditor

nova wedge
#

anyone familiar w/ Matlab in here?

next lotus
rose pawn
#

I want autiomatic file encoding finder

next lotus
#

java is at the depths lmao

next lotus
rose pawn
#

Haha python is above c sharp

next lotus
#

i know lol

#

but look

#

.net 7 has a whole lot of new shit

#

like a cross platform ui

main brook
#

cool

#

we also have that

#

but its not incorporated

#

so its third party library

next lotus
#

also id love to learn rust

#

but its kinda not mature yet, unless there's a crossplatform library for making desktop and mobile apps count me in lol

main brook
#

its mature

#

not sure watchu mwan

next lotus
#

is there a game development platform for rust? like one that actually caters for rust

#

can you make mobile applications using rust?

main brook
#

maybe

#

rust compiles to machine code

#

doesn't it

next lotus
#

yeaah it kinda needs more development platforms or whatever you call these xD but pretty solid language

main brook
#

its good for what its made for

#

so

#

yes

orchid frigate
#

rust has something for everything

#

game development? havent tried the game development crates but I know alot of them exist

#

there is an entire discord dedicated to it with many people

#

want more low level? Most graphics apis have wrappers around the language

#

idk about the higher level stuff

#

nor the app stuff

#

but I know there is ways to do that too

#

so yea pretty solid language which managed to become my favorite...maybe after c

orchid frigate
#

also

#

the linux kernel was discussed to be rewritten to it

#

which....I mean I guess if someone has the time to do it and is willing to update the kernel by himself

#

C still somehow feels superior to rust in kernels even with all the new shiny tools rust brings

main brook
#

why do you

#

use

#

"himself"

#

are you saying women can't????

#

*angry noise occuring*

#

unless you actually mean the creator of linux himself

pulsar phoenix
#

Can some one teach me how to code

next lotus
pulsar phoenix
#

Wich one

pulsar phoenix
distant wraith
#

YouTube

pulsar phoenix
distant wraith
#

Nah

pulsar phoenix
#

Then how Im I going learn that way

#

Stupid mic stupid face

#

Watch me get ban for that

pulsar phoenix
distant wraith
#

I didn't learn coding from YouTube, but that doesn't mean you can't learn from it

pulsar phoenix
#

NO

#

I must go on a journey to get to your point

pulsar phoenix
#

EXACTLY