#Notepad++ in game
1 messages · Page 1 of 1 (latest)
I'm not suggesting copy paste. My suggestion is more akin to reading the entirety of the code that pertains to the editing window and applying the same logic.
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
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.
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
no one's pointing and laughing at you, to put my explanation another way, the logic of the notepad++ program isn't transferrable to unity because it's a different environment, everything about it is different all the way down to how things are being displayed on the screen
code editor becomes a compiler only and notepad is just a text entry for making and reading text files
yea the notepad in game isnt even a notepad its just something to display a string in a form ui
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
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"
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
file extensions are a windows thing, the game is emulating a unix style environment
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
the latter
yes, yes that is completely possible. I'm suggesting that the game be improved using the same selection, typing, hotkeys, and keyboarding that notepad++ uses
file extensions were NOT on my radar, at all.
The code from notepad++ wouldn't be helpful in achieving that
@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
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++
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.
I'm not entitled whining. I suggested an idea, nobody understood the point I was making and it frustrated me. Don't villify me because you have nothing better to do.
'm going to get aggressive now. Why do you think notepad and notepad++ behave differently?```
^ that
that makes you seem unstable
For admitting myhuman feelings to explain where I'm coming from better?
self control is important. and approriate reactions to situations is important.
you over reacted
dial it back a notch
My self control is not being an asshole about it.
Yep
people gave their thoughts
check
you got aggressive
yes
did i miss something?
no, you added things
I said yes to those three things
what did i add?
You called me entitled
that was a wile ago
right, that's my main beef with your original statement
and after the aggression
everything else checks out
so i made an observation along with a suggestion
except for the "disagreement" part. It wasn't disagreement. It was misunderstanding
and you disagree
but that's semantics
im aware
we'll all make it through this
lol
I was never mad to begin with. I was frustrated.
c'mon you can't be mad at me
If I was mad I wouldn't be conversing.
depends on your definition of mad
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.
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.
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
vision: it's Kuro's vision, not yours. sorry if that makes you feel attacked. it's not an attack, it's just fact.
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
your idea being adopted or not is not up to anyone here
I never implied that it HAS to be that way
it's up to kuro
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
are you making an effort to understand the other side?
are you?
literally what im doing right now
trying to understand you by getting you to tell me
dont understand me, understand my idea
le sigh
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
let me expand;
it's easier, because you can read the source code, to understand how that program works.
that is, by and by, easier, by definition, than not having a clue
true or false
do you understand the source code of Grey Hack enough to make that assertion?
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
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
so like, when folks question you, try to take it like defending a dissertation and not stabbing someone in a bar fight
do you not know how to act like an adult
?
I get defensive because the wall of argument being thrown up is of ignorance of how programming works
like really, you're being aggro and entitled and you're bristling at anyone disagreeing with you.
chill
please
just chill
it's not entitlement, get a dictionary
It's not my game
money == mouth
i said what i mean
money is mouth. got it
glad you understand
op.implement(suggestion)
end if```
You could even show the code to kuro for inspiration
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
Dont have to mod unity if you wanted to try and do this yourself, could just attempt to make a unity asset
fair point
Oh wow, I've been wanting to do this. Not having those shortcuts throws me off a ton...
This conversation is gold
Nice that you actually did the research tho
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! 😄
I don't believe exes are possible yet. It's certainly possible someone might decompile one of the existing programs, but I'm sure the team will release something for exes in the future.