diff --git a/about.html b/about.html index a21262a..f6947e1 100644 --- a/about.html +++ b/about.html @@ -32,6 +32,33 @@ I like the Rust programming language, have shitty takes, and know the world I was given is broken and immoral(hopefully we could change it one day)

+
+

Hobbies

+

+ Programming, gaming, 3D printing, and cooking(not necessarily in that order) +

+ Programming: Usually in Rust(as stated above), but I might also do embedded C stuff (oNcE i GeT tO iT), + My current projects(as of 12/9/22) are: lazy_knight(a 2d game), command_injector(the html helper used for this website), + shape_maker(2d level editor built around drawing random shapes, made it for lazy_knight originally) and + gitea_executor(simple build server for gitea based on make) +
+ and yes, they are all in rust... +
+ Also, I plan on getting more and more into embedded programming, currently I want to make a standalone "VR Controllers", + to play VR-like games but without actual VR(kinda like wii games but on PC and open source and no need to get a wii remote) +

+ Gaming: Mostly shooters(almost entirely shooters to be fair), but I also enjoy platformers(and a good combination of them is top notch). +
+ pretty much the reason I want to develop games is to create the games *I* want to play, and open sourcing them is really neat because + now I dont need to care about marketing and everything, because I just dont care(not like imma make money out of it anyway...) +

+ 3D Printing: I got myself a Creatily Ender 3 v2 3D printer, and boi is it fun(and noisy), but I really enjoy dealing with it and printing stuff. + My designing skills are not as good as I would like, but I manage the basics that I currently need(while printing cool models from thingiverse) +

+ Cooking: By cooking I also mean baking, but in general, the process of creating something tasty is just fun. Cooking specifically is kinda a must + skill imho, since it is such a helpful skill, which also spices your meals :). And baking is also really fun, you do some (usually) simple steps, + and BAM you now have cookies! +

I thought I will have more to write here(as of 14/5/22)... diff --git a/bscripts/index.html b/bscripts/index.html index 8974ef2..dc597fa 100644 --- a/bscripts/index.html +++ b/bscripts/index.html @@ -1,7 +1,7 @@ cat $HOME/template/header.html | sed "s/__PAGE TITLE__/Build Scripts/"

Build Scripts

-
+

Folder keeping build script helpers(for running using my injector).
@@ -9,11 +9,8 @@ (yes i know i hate python but its v quick for simple stuff) to transform input from ls into a list of <a> tags(with space between)

-

- here is the list of files here: -
- cd $CURRENT && ls *.* | python3 $HOME/bscripts/ls_to_a.py -

+
+ python $HOME/bscripts/ls_table.py $CURRENT
diff --git a/bscripts/internal_links.py b/bscripts/internal_links.py index daa3774..98b8f7d 100644 --- a/bscripts/internal_links.py +++ b/bscripts/internal_links.py @@ -3,4 +3,4 @@ while True: a = input() except: break - print('' + a.capitalize() + ' ') + print('' + a.capitalize() + ' ') diff --git a/bscripts/ls_table.py b/bscripts/ls_table.py new file mode 100644 index 0000000..97a149e --- /dev/null +++ b/bscripts/ls_table.py @@ -0,0 +1,27 @@ +import sys +import os +import time +# Make sure we got a directory +if len(sys.argv) < 2: + print("Error: Directory not given!") + quit() +# Get path, files, and creation/modification times +path = sys.argv[1] +file_filter = sys.argv[2] if len(sys.argv) > 2 else '' +files = [[x, os.path.getctime(f'{path}/{x}'), os.path.getmtime(f'{path}/{x}')] for x in os.listdir(path) if x.endswith(file_filter)] +# sort by creation time +files.sort(key= lambda x: x[1], reverse=True) +# print start of table(including headers) +print('') +print('\n') + +# print each row +for x in files: + if x[0] == 'index.html': # skip the index.html file because kinda boring + continue + x[0] = f'{x[0].replace(".html", "")}' + x[1] = time.strftime("%b %d %Y", time.strptime(time.ctime(x[1]))) + x[2] = time.strftime("%b %d %Y", time.strptime(time.ctime(x[2]))) + print(f''); +# finish printing the table +print('
CreatedModified
{x[0]}{x[1]}{x[2]}
') diff --git a/bscripts/ls_to_a.py b/bscripts/ls_to_a.py index cc5833c..e94744e 100644 --- a/bscripts/ls_to_a.py +++ b/bscripts/ls_to_a.py @@ -6,4 +6,4 @@ while True: a = input() except: break - print('' + a.replace('.html', '') + '') + print('' + a.replace('.html', '') + ' ') diff --git a/default_style.css b/default_style.css index a34d524..0c2a7ac 100644 --- a/default_style.css +++ b/default_style.css @@ -7,12 +7,14 @@ body { h1 { color : rgb(255, 40, 60); } +h1, h2, h3 { + text-align: center; +} div { - width: 90%; + width: 60%; position: relative; margin: auto; - align-self: center; - text-align: center; + text-align: left; border-color: rgb(60, 0, 90); border-width: thick; border-style: double; @@ -20,6 +22,8 @@ div { padding: 5px; padding-bottom: 10px; margin-bottom: 10px; + padding-left: 5%; + padding-right: 5%; } a { color:rgb(150, 150, 255); @@ -29,6 +33,7 @@ hr { color: rgb(60, 0, 90); background-color: rgb(60, 0, 90); border-color: rgb(60, 0, 90); + margin-left: 5%; } diff --git a/index.html b/index.html index 5b8158f..ca7fd53 100644 --- a/index.html +++ b/index.html @@ -1,11 +1,10 @@ cat $HOME/template/header.html | sed "s/__PAGE TITLE__/Rusty's website/"

- Folders: cd $CURRENT && ls */ -d | sed 's/\///' | python3 $HOME/bscripts/ls_to_a.py -
- Files: cd $CURRENT && ls *.html | python3 $HOME/bscripts/ls_to_a.py + Folders
cd $CURRENT && ls */ -d | sed 's/\///' | python3 $HOME/bscripts/ls_to_a.py +

+ Files
cd $CURRENT && ls *.html | python3 $HOME/bscripts/ls_to_a.py

- -
+

Hello and welcome to my personal website

@@ -23,6 +22,15 @@

+
+

Where to find me on other places

+

+ Mastodon + Gitea + Github +
+ @rusty_striker:matrix.org on Matrix +

cat $HOME/template/footer.html diff --git a/old_index.html b/old_index.html index 87638fa..e480666 100644 --- a/old_index.html +++ b/old_index.html @@ -1,8 +1,8 @@ cat $HOME/template/header.html | sed "s/__PAGE TITLE__/Rusty's website/"

- Folders: cd $CURRENT && ls */ -d | sed 's/\///' | python3 $HOME/bscripts/ls_to_a.py -
- Files: cd $CURRENT && ls *.html | python3 $HOME/bscripts/ls_to_a.py + Folders
cd $CURRENT && ls */ -d | sed 's/\///' | python3 $HOME/bscripts/ls_to_a.py +

+ Files
cd $CURRENT && ls *.html | python3 $HOME/bscripts/ls_to_a.py

diff --git a/stories/decentralized mmo.html b/stories/decentralized mmo.html new file mode 100644 index 0000000..f291589 --- /dev/null +++ b/stories/decentralized mmo.html @@ -0,0 +1,99 @@ +cat $HOME/template/header.html | sed "s/__PAGE TITLE__/Decentralized MMO/" +

+ Folders
cd $CURRENT && ls */ -d | sed 's/\///' | python3 $HOME/bscripts/ls_to_a.py +

+ Files
cd $CURRENT && ls *.html | python3 $HOME/bscripts/ls_to_a.py +

+ +

Decentralized/Federated MMO

+ +

+ grep 'h[1-3] id="' $CURRENT/$FILE | awk -F \" '{ print $2 }' | python $HOME/bscripts/internal_links.py +

+ +
+

Introduction

+

+ Back in my childhood I used to play quite the amount of MMORPGs (mostly because they were free, but also because they were online).
+ The more time passed, the less MMORPGs I got to play, most of the good options were either shut down + or got SUCH a power creep I lost interest in them (like MapleStory when they started adding a lot of overpowered classes). +

+

+ As an aspiring game developer, I hope to one day attempt making my own MMORPG, and something which is (sort of) important to me + is for the game to be decentralized/federated. +

+
+

Why make a decentralized MMO tho?

+

+ Well, you see, whenever I look for alternatives to big centralized services (like Github or social medias), + it always seems to me that the best choice is to decentralize and federate it.
That way, anyone can create their own instance + and not miss out on everyone else, allowing both greater control to the individual, while also sharing the costs between those + who host their own (and those who decide to donate them).
+

+

+ Besides, there are some useful advantages to federating a bunch of servers in an MMO which will hopefully become clearer later on. +

+
+

The Big Picture

+

+ Mainly, there will be 2 different types of servers: +

+

+
+

A note going forward

+

+ My idea of decentralized/federated MMO involves quite the amount of trust, + trust between federating servers (federation will be opt in to allow greater control over gameplay), + and trusting clients to not lie when they go into a dungeon. +

+

+ Another thing is, while I do wish I could implement this idea into an actual MMORPG, this is merely an idea right now, + if you want to implement this idea into your game, feel free to do so (and maybe link here as well). +

+
+

Hubs

+

+ Hubs (or Home servers) are the main servers of the network, they are the main authority over your account. +

+

+ Hubs have an overworld with stuff to do (or maybe not), and where you meet other players and can make parties, + communicate with others, trade and all the usual stuff people do in MMOs (like a dance party). +

+

+ Federation between hubs is a 2 way opt in federation, which means both servers need to accept the federation for the federation to exist + (probably accept the federation by creating a portal somewhere in the overworld). + Federated servers also needs to sync any plugins/mods/addons which create new items + (or anything you can transfer between servers, so a hat needs to by synced but a new boss doesnt need to). +

+

+ Federated servers needs to have trust between them, because federating with 2 servers means said servers are now also federating + (creating a federation cluster) +

+
+

Dungeons

+

+ Dungeons (or Nodes/Edges) are sub-servers, they are simply a dungeon/map for a party to explore/play in, + and should be where most of the game content occur, + they are hosted by whoever wants to and are technically simply a level (plus some game data in addition, though they are part of the level) + with an end condition (or fail condition) and a reward. +

+

+ Dungeons dont federate with each other (and technically dont federate at all), but hubs can link/federate (one way) to them and allow their + players to go into a dungeon and get the rewards from it (or optionally, modify the rewards to better fit the server). +

+

+ Dungeons occur in private instances available only to the exploring party. + this means that the hub server trusts the players to not lie about the results of the dungeon + (although for end rewards, the server can roll the dice for them, to allow random loot in dungeons). +

+

+

Quick note on dungeons

+ Although dungeons usually get linked to from hub servers, it is also possible to allow dungeons to be played even if they are not linked, + thus allowing players to play all dungeons, but it means non-linked dungeons will give no actual reward (or anything at all). +

+
+ +cat $HOME/template/footer.html \ No newline at end of file diff --git a/stories/index.html b/stories/index.html index d75cdd2..0e4abbc 100644 --- a/stories/index.html +++ b/stories/index.html @@ -1,17 +1,14 @@ cat $HOME/template/header.html | sed "s/__PAGE TITLE__/Stories/"

Stories

-
+

- Random stories, either about things I make(programs, games, physical stuff), + Random stories, blogs, ideas and more.
- or about stuff that happens to me -

-

- Stories: -
- cd $CURRENT && ls *.html | python3 $HOME/bscripts/ls_to_a.py + Things I made/built/thought of or just wanted to share

+
+ python $HOME/bscripts/ls_table.py $CURRENT .html
diff --git a/stories/injector.html b/stories/injector.html index 0b14e85..a372248 100644 --- a/stories/injector.html +++ b/stories/injector.html @@ -1,8 +1,8 @@ cat $HOME/template/header.html | sed "s/__PAGE TITLE__/Injector/"

- Folders: cd $CURRENT && ls */ -d | sed 's/\///' | python3 $HOME/bscripts/ls_to_a.py -
- Files: cd $CURRENT && ls *.html | python3 $HOME/bscripts/ls_to_a.py + Folders
cd $CURRENT && ls */ -d | sed 's/\///' | python3 $HOME/bscripts/ls_to_a.py +

+ Files
cd $CURRENT && ls *.html | python3 $HOME/bscripts/ls_to_a.py

Injector

diff --git a/template/header.html b/template/header.html index 562a099..1e67bc4 100644 --- a/template/header.html +++ b/template/header.html @@ -36,7 +36,7 @@
-
+

Rusty's Website

diff --git a/template/index.html b/template/index.html index e82ad13..cc01742 100644 --- a/template/index.html +++ b/template/index.html @@ -7,11 +7,8 @@ like the header and footer of the pages(also contains the start and end of the pages!, tho I might change that)

-

- here is the list of templates in here: -
- cd $CURRENT && ls *.html | python3 $HOME/bscripts/ls_to_a.py -

+
+ python $HOME/bscripts/ls_table.py $CURRENT
diff --git a/useful/index.html b/useful/index.html index e4cef02..c059868 100644 --- a/useful/index.html +++ b/useful/index.html @@ -1,13 +1,12 @@ cat $HOME/template/header.html | sed "s/__PAGE TITLE__/Useful/"

Useful

-
+

Useful stuff to know/resources

-

- cd $CURRENT && ls *.html | python3 $HOME/bscripts/ls_to_a.py -

+
+ python $HOME/bscripts/ls_table.py $CURRENT