#Notepad++ in game

1 messages · Page 1 of 1 (latest)

peak sage
#

being open source and being able to put it into a unity game are two very different things 😅

novel meadow
peak sage
#

That's not how that works unfortunately, to start with it's not written in the same language, but notepad in the game is not a program that the game is running like notepad++ is a program that windows runs. Gotta keep in mind that the game isn't actually an operating system, you can't take a windows program and just code that in the game

novel meadow
#

So this is a pretty common occurence that people don't understand what I'm saying, like I'm REDACTED or something? I don't know. But I'm not REDACTED, listen to me;

THE LOGIC exists, regardless of whatever language it is in.
I am suggesting that the developer(s) read the code in notepad++'s source code, understand the code, understand the logic behind the functionality of the text editor and it's control and hotkeys etc etc,
then
turning around and coding it in C# for the game and applying the logic to the ingame text editor (a new one, from scratch)

K, now it's your turn to tell me why that won't work, why I'm stupid and point and laugh at me, as is the usual MO in every game discord suggestion thread.

modest crypt
#

i think you can easily use things outside the game to edit things and dont even need to use in game things to begin with and its even immersive to the game since its supposed to be a simulated virtual machine

peak sage
modest crypt
#

code editor becomes a compiler only and notepad is just a text entry for making and reading text files

modest crypt
novel meadow
#

Well, I'm not going to argue about it. You're both missing my point. And since that's 2/2 the pattern will follow. Go ahead and delete my suggestion

mighty bison
#

Are you implying "notepad++ is open source, so just port it to C#" ?
or "notepad++ is open source, so look at their logic and apply it"

modest crypt
#

i mean if it were the latter, file extensions would matter then and that could be cool

#

highlighting in notepad for config files and such would be nice

peak sage
modest crypt
#

fair

#

i dont really know what application they were implying

#

and again anything you could implement can just be done on notepad++ in your host system

#

this game is simulating a VM

#

your host system always has tools too irl

#

same as we use VSC for src editing

novel meadow
#

file extensions were NOT on my radar, at all.

peak sage
novel meadow
#

@peak sage I'm going to get aggressive now. Why do you think notepad and notepad++ behave differently?

#

Further, why do you think when you try to shift+arrow key select something in greyhack codeeditor things get wonky and get deleted wrong?

#

How about this one.. double click this... some_variable

#

what gets highlighted out of that?

#

These behaviors are coded into notepad++'s text editing. They are some of the things that make it superior to notepad. Some of the things that ingame greyhack codeditor/notepad fail at doing is being consistent, reliable, intuitive and viable for a decent workflow.
Macha will come back and tell me "just use notepad++" Well, I do. I do in fact "just use notepad++" My suggestion is for the game to become better fundamentally than it is by embracing features from a very well reputed program that does text editing the right way. A program where that knowledge is openly available in an open source package.

#

I'm absolutely heated right now, and I know that sounds silly, because this is just a message board. But I'm pretty upset that I'm not being understood, or even moreso that nobody here seems to understand how valuable a nice editor really is when writing code. But even deeper still that it's somehow not acceptable to have a better editor in the game and we should be seeking third party tools. I, for one, would like to see newcomers to the game not need to alt tab and copy alt tab paste just to play a game. some of us nerds are ok with that. some people just want to play THE GAME and that's it. Which I can see both perspectives. I like my third party tools. But we shouldn't need to rely on them so heavily

upper gyro
#

Code editor in game can be improved but the developer isnt going to make notepad++ by reading source code and applying the logic just because u want them to. It’s just a waste of time for them. take the code out of game and use notepad++

stoic cobalt
# novel meadow <@199338124420186114> I'm going to get aggressive now. Why do you think notepad ...

Why are you getting aggressive over someone not agreeing with you? Makes you seem a littl unstable.
How about you consider this: the dev 'team' is a single human being. I would venture to guess that they do this wild thing called "prioritization" of their time. Maybe your suggestion is good. Maybe it's not. Mabye Kuro does it. Maybe Kuro does not.

But your entitled whining is fcking annoying. People disagree. Deal.

novel meadow
stoic cobalt
#
'm going to get aggressive now. Why do you think notepad and notepad++ behave differently?```
#

^ that

#

that makes you seem unstable

novel meadow
#

For admitting myhuman feelings to explain where I'm coming from better?

stoic cobalt
#

self control is important. and approriate reactions to situations is important.

#

you over reacted

#

dial it back a notch

novel meadow
#

My self control is not being an asshole about it.

stoic cobalt
#

i mean

#

you made a suggestion

novel meadow
#

Yep

stoic cobalt
#

people gave their thoughts

novel meadow
#

check

stoic cobalt
#

you got aggressive

novel meadow
#

yes

stoic cobalt
#

did i miss something?

novel meadow
#

no, you added things

stoic cobalt
#

but you said yes

#

each ting

#

now im confused

novel meadow
#

I said yes to those three things

stoic cobalt
#

what did i add?

novel meadow
#

You called me entitled

stoic cobalt
#

that was a wile ago

novel meadow
#

right, that's my main beef with your original statement

stoic cobalt
#

and after the aggression

novel meadow
#

everything else checks out

stoic cobalt
#

so i made an observation along with a suggestion

novel meadow
#

except for the "disagreement" part. It wasn't disagreement. It was misunderstanding

stoic cobalt
#

and you disagree

novel meadow
#

but that's semantics

stoic cobalt
#

see how easy it is to disagree?

#

it's ok

novel meadow
#

im aware

stoic cobalt
#

we'll all make it through this

novel meadow
#

lol

stoic cobalt
#

still mad?

#

:]

novel meadow
#

I was never mad to begin with. I was frustrated.

stoic cobalt
#

c'mon you can't be mad at me

novel meadow
#

If I was mad I wouldn't be conversing.

stoic cobalt
#

depends on your definition of mad

novel meadow
#

Indeed. And my definition lands somewhere in the realm of "you wronged me so bad that I don't even want to be in the same room so I'll see myself out". Rarely am I mad because rarely are people intentionally hurting me (or anyone for that matter)

#

The joys of tone not being received through text.

stoic cobalt
#

so tell me what hruts

#

if you feel wronged, you have to give folks a chance to make it right

#

otherwise

#

you want to feel wronged

#

don't play victim. put your big kid pants on and talk it out

#

while you're typing i'll give you my favorite quote:

#

To avoid criticism; do nothing, say nothing, be nothing.

novel meadow
#

If you're referring to this situation allow me to explain in DEPTH what is going on here; First and foremost, I'm not mad, I'm not even close to mad.
I'm far closer to sad because my idea, my vision, is not being received correctly. I know it isn't being received correctly because I'm being told "that's not how it works". But I know for a fact it IS how it works, as humans we take things apart, and repurpose the puzzle pieces to create grand new creations.
Next; I'm still not mad. I'm upset that I'm misunderstood and that makes me have to take a different approach. So aggression was announced to make it clear that my thoughts are going to be conveyed in gattling

stoic cobalt
#

vision: it's Kuro's vision, not yours. sorry if that makes you feel attacked. it's not an attack, it's just fact.

novel meadow
#

I'm not even afraid of criticism. I just want people to hear what I have to say. But everyone always gets the wrong information out of what I say no matter which way I try to explain things

#

STOP right there

stoic cobalt
#

your idea being adopted or not is not up to anyone here

novel meadow
#

I never implied that it HAS to be that way

stoic cobalt
#

it's up to kuro

novel meadow
#

I'm referring to Nyx telling me it's impossible

#

Kuro can make whatever decisions he wants I dont give a hoot what he does or doesnt

#

but if i put my idea out there, at the very least it ought to be understood before its dismissed

stoic cobalt
#

are you making an effort to understand the other side?

novel meadow
#

are you?

stoic cobalt
#

literally what im doing right now

#

trying to understand you by getting you to tell me

novel meadow
#

dont understand me, understand my idea

stoic cobalt
#

le sigh

peak sage
# novel meadow I'm referring to Nyx telling me it's impossible

I didn't say anything was impossible, you asserted that the open source code of notepad++ would make implementing the same thing into GH easier in some way, I was simply correcting that assertion. If what you want to suggest is something that behaves like notepad++ in GH that's totally fine, it's just the assumption that it would be easy because notepad++ is open source when nothing about that would transfer to Unity

novel meadow
#

that is, by and by, easier, by definition, than not having a clue

#

true or false

stoic cobalt
novel meadow
#

I program in python, c++, c#, i learned ruby etc etc etc.
Reading source code means you can see how things are put together, you can then repurpose the IDEAS and LOGIC behind it

#

I have modded multiple unity games and I've written a genetics simulation in c++ I DO know what I'm talking about

peak sage
# novel meadow true or false

The environment of a program like notepad++ is so far removed from the environment of Unity it wouldn't transfer anything useful besides general feature ideas, which don't involve the code you can get those just from using the software

stoic cobalt
#

so like, when folks question you, try to take it like defending a dissertation and not stabbing someone in a bar fight

novel meadow
#

Why do you keep implying that it has to be 1:1

#

do you not know how to read code?

stoic cobalt
#

do you not know how to act like an adult
?

novel meadow
#

I get defensive because the wall of argument being thrown up is of ignorance of how programming works

stoic cobalt
#

like really, you're being aggro and entitled and you're bristling at anyone disagreeing with you.

#

chill

#

please

#

just chill

novel meadow
#

it's not entitlement, get a dictionary

stoic cobalt
#

ow about this

#

YOU code it

novel meadow
#

It's not my game

stoic cobalt
#

money == mouth

novel meadow
#

you mean money.location == mouth.location

#

but yeah, i get what you mean

stoic cobalt
#

i said what i mean

novel meadow
#

money is mouth. got it

stoic cobalt
#

glad you understand

faint marlin
#
        op.implement(suggestion)
end if```
#

You could even show the code to kuro for inspiration

novel meadow
#

https://github.com/jacobslusser/ScintillaNET
The first piece of the puzzle. This would handle most of the keyboard shortcuts. The mouse would probably need to be managed manually on account of what I assume is a highly customized/personal gui. But the mouse does most everything a mouse would normally do already, excluding highlighting properly on account of what I assume is an off by 1 array bug under certain circumstances. And not highlighting a to cursor click while holding shift. Won't be as big of a deal with keyboard shortcuts.
On to the meat and potatoes;
Notepad++ uses scintilla, natively. ScintillaNET is a .net wrapper for the grand majority of the original library's functionality. From what I read there's a difference in how entire lines are handled, minor difference. Semantics. I'm sure there are other caveats. But that's the biggest chunk of it. Again, am I going to implement this? No. Modding unity is like pulling teeth. But I did a bit of research to give my idea proof of concept. I found clues within notepad++ source code and low and behold, scintilla. Which IIRC is what screeps uses for it's ingame code editor as well. (Don't quote me on that. it's been a few years)
But there it is. A whole library of functions for modifying text, syntax highlighting, code development in general. Wouldn't be surprised if under the hood of many IDEs you'd find this lib.
Now, go ahead. Keep telling me about how wrong I am, and how stupid my idea is. Tell me all about how the environment is so different blah blah blah. Meanwhile, I'll be over here, NOT doing what you told me to and NOT listening to what you had to say because I knew better than to listen to script kiddies. And to address the racist from 12:41 MST March 10, 2024; I never said it would be easy. Only that it would be easier and beneficial if implemented. Those lacking critical thinking love to put words in mouths to fit their worldviews.
For the record; it took me all of about 30 minutes to unearth this gem

GitHub

A Windows Forms control, wrapper, and bindings for the Scintilla text editor. - jacobslusser/ScintillaNET

peak sage
fiery kite
eager sparrow
#

This conversation is gold

eager sparrow
lost rain
#

Long story short though... has anyone managed to create a .EXE in the game yet? Or is every tool and program so far only been binary files?
I don't think you can just go and create GUI programs in Grey Hack, right?
Edit: I just realized this suggestion is towards Kuro.. He could totally do it.. probably won't tho.. so the long story is still short! 😄

fiery kite