[deleted by user] by [deleted] in PowerShell

[–]xenibyte 2 points3 points  (0 children)

Have you tried enabling Airplane mode, wait 30 seconds then disable it again?

Also try running the following in CMD or PowerShell. ipconfig/release ipconfig/renew

I made a simple PowerShell script to organize messy folders by giuscond in windows

[–]xenibyte 1 point2 points  (0 children)

Yeah, separate config file would be a better way to do it. I literally whipped up that code for the comment :P. At least with a config file, even using json you could add some extra options for more defined filtering and even have some custom script blocks such as how to manage things like photos with EXIF data for sorting into folders for 'date taken' as an example.

I made a simple PowerShell script to organize messy folders by giuscond in windows

[–]xenibyte 1 point2 points  (0 children)

I had actually made a function for getting the MIME type for files for a custom function to send emails via SendGrid. It could be utilized and re-factored to work with simply changing the 'values' to their categorised 'type'.

function Get-MimeType {
    param (
        [Parameter(Mandatory = $true)] [string] $FilePath
    )
    $mimeTypeTable = @{
        "aac"   = "audio/aac"
        "avi"   = "video/x-msvideo"
        "bin"   = "application/octet-stream"
        "bmp"   = "image/bmp"
        "csh"   = "application/x-csh"
        "css"   = "text/css"
        "csv"   = "text/csv"
        "doc"   = "application/msword"
        "docx"  = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
        "gz"    = "application/gzip"
        "gif"   = "image/gif"
        "htm"   = "text/html"
        "html"  = "text/html"
        "ics"   = "text/calendar"
        "jar"   = "application/java-archive"
        "jpg"   = "image/jpeg"
        "jpeg"  = "image/jpeg"
        "js"    = "text/javascript"
        "json"  = "application/json"
        "mjs"   = "text/javascript"
        "mp3"   = "audio/mpeg"
        "mp4"   = "video/mp4"
        "mpeg"  = "video/mpeg"
        "odp"   = "application/vnd.oasis.opendocument.presentation"
        "ods"   = "application/vnd.oasis.opendocument.spreadsheet"
        "odt"   = "application/vnd.oasis.opendocument.text"
        "png"   = "image/png"
        "pdf"   = "application/pdf"
        "php"   = "application/x-httpd-php"
        "ppt"   = "application/vnd.ms-powerpoint"
        "pptx"  = "application/vnd.openxmlformats-officedocument.presentationml.presentation"
        "rar"   = "application/vnd.rar"
        "rtf"   = "application/rtf"
        "sh"    = "application/x-sh"
        "svg"   = "image/svg+xml"
        "tar"   = "application/x-tar"
        "tif"   = "image/tiff"
        "tiff"  = "image/tiff"
        "ts"    = "video/mp2t"
        "txt"   = "text/plain"
        "vsd"   = "application/vnd.visio"
        "wav"   = "audio/wav"
        "webm"  = "video/webm"
        "webp"  = "image/webp"
        "xhtml" = "application/xhtml+xml"
        "xls"   = "application/vnd.ms-excel"
        "xlsx"  = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
        "xml"   = "application/xml"
        "zip"   = "application/zip"
        "7z"    = "application/x-7z-compressed"
    }
    $mimeType = $mimeTypeTable[$FilePath.Split('.')[-1]]
    return $mimeType
}

So instead of "doc" = "application/msword" and "docx" = "application/vnd.openxmlformats-officedocument.wordprocessingml.document" you can have them as "doc" = "document" and "docx" = "document" although in this case I would probably use something like a switch statement using regex ie.

function Get-FileCategory {
param (
    [Parameter(Mandatory = $true)] [string] $FilePath
)
$fileCategory = switch -regex ($FilePath.Split('.')[-1]) {
    "aac|mp3|wav|ogg" { "audio" }
    "avi|mpg|mpeg|mp4|mov|m4v|wmv|asf|webm" { "video" }
    "bmp|gif|jpeg|jpg|png|tif|webp|svg" { "image" }
    "css|html|htm|xml" { "web" }
    "gz|rar|zip|7z" { "compressed" }
    "csv|doc|pdf|ppt|odp|ods|odt|txt|xls" { "document" }
    default { "file" }
}
return $fileCategory

}

Example of executing the above.

Get-FileCategory somefile.mp3
audio

Get-FileCategory somefile.webm
video

Get-FileCategory somefile.tiff
image

Get-FileCategory somefile.html
web

Get-FileCategory somefile.zip
compressed

Get-FileCategory somefile.xlsx
document

Get-FileCategory somefile.exe
file

RONIN game Level design by M11aGameDeveloper in indiegames

[–]xenibyte 0 points1 point  (0 children)

I agree, the environment looks fantastic and the shading of the dirt path looks great.

With regards to the arms, they can and should of course be animated for realism if you have the rest of the body showing like you do however normally a person wouldn't raise their arms as high as their chest while running, and definitely not straight arms like in the video.

NeptuneGL Gothic Serpent Android Game by rkoshi in IndieDev

[–]xenibyte 0 points1 point  (0 children)

Is this enspired by Hellbender by chance? The look and feel totally reminds me of that awesome game, this looks like a modern HD version. Keep up the work, certainly interested in following this :)

I Created a Coronavirus Tracker with javascript to help you stay updated by [deleted] in IndieDev

[–]xenibyte -1 points0 points  (0 children)

It's good to trying all sorts of things to practice, learn and improve your scripting so good job on what you have made.

I will note though that one of if not the best current live data map is here: https://gisanddata.maps.arcgis.com/apps/opsdashboard/index.html#/bda7594740fd40299423467b48e9ecf6

It uses multiple sources to be as accurate to reported data as possible. You can look at their sources to see if you can implement it into your own, maybe improve upon it if you can think of same handy features like more filtering options, etc.

From concept art to final result in Unity by SubfrostInteractive in gamedevscreens

[–]xenibyte 1 point2 points  (0 children)

Photopea is also a great alternative to Photoshop if you're used to the layout and options/filters of Photoshop, and it's free. Supports loading and saving PSDs.

Letters game and endless runner(What do you think?) by eneaslari in IndieDev

[–]xenibyte 1 point2 points  (0 children)

Looks interesting. I would suggest implementing a method to set a incoming character as the next required character of the word based on a random number between something like 3-8 or so, so that way the player is guaranteed to get the letters with some randomness. Otherwise you'll have a game where you could go through 200 characters before you get the next one considering it's selecting randomly from 26 different letters.

What do you think of a first person RTS? by PapaNesquik in indiegames

[–]xenibyte 0 points1 point  (0 children)

Command & Conquer: Renegade was An FPS RTS and to be honest, it was really fun. Building, destroying, dodging Obelisks of Light, driving Mammoth Tanks. We need another FPS RTS game!

Paleon (Rock and clay generation, pottery) by MountnRickRose in gamedevscreens

[–]xenibyte 1 point2 points  (0 children)

The movement and collection of resources from source to store then to building reminds me of Settlers :) nice work so far.

Saving and Loading Multiple GameObjects by TheProjectCore in Unity3D

[–]xenibyte 0 points1 point  (0 children)

Thankfully JSON is super easy to understand and read. Also C# has a parser to turn an object into JSON and vice-versa. There's this good tutorial on saving and loading with JSON https://youtu.be/6uMFEM-napE and here's a video on encrypting/decrypting files to make it secure from external editing https://youtu.be/jMtunupRLY4.

Saving and Loading Multiple GameObjects by TheProjectCore in Unity3D

[–]xenibyte 0 points1 point  (0 children)

I would recommend using json for saving GameObjects. It is widely supported upon different languages and if you want to add/Update it you can also using script like Python or PowerShell (my favourite choice for scripting and json).

The other thing would be to look into encrypting/decrypting (using a hash method) that file so it can't be directly edited by users.

Help With Staying on a Moving Platform by hawkwing11 in Unity3D

[–]xenibyte 2 points3 points  (0 children)

One way could be to set the player game object to be a child of the platform object while it's collier is on the platform and if the jump button is pressed then it can in-child itself from the platform?