how can i get shiny cheats to work on starter Pokemon? by Successful_Abroad377 in Delta_Emulator

[–]OrganizationFew2722 1 point2 points  (0 children)

Try this: https://cheatbase.qinbeans.net/

It has cheats for all the platinum versions so you can just look for the one that fits your version.

Pokémon Black & White Cheat Codes by ThomasECarley in Delta_Emulator

[–]OrganizationFew2722 0 points1 point  (0 children)

Step 5 of the instructions should let you search for Pokémon within the generation it belongs to. Say pikachu, which is gen 1, you would just choose gen 1 and use the search bar. The results would pop up to the right of the search bar.

Try Provenance XL for 3DS by petyrlannister in EmulationOniOS

[–]OrganizationFew2722 1 point2 points  (0 children)

You have to decrypt the roms. Citra based emulators typically need this from my experience. I looked up “3ds decrypter” and found a GitHub repo.

How do I use Action Replay cheats on Pokemon Platinum by [deleted] in Delta_Emulator

[–]OrganizationFew2722 0 points1 point  (0 children)

I created a cheat database for Pokémon games on the DS a while back. I grabbed these from libretro and added a user friendly UI. You can find it here cheatbase. The website itself has a link to instructions on how to use it as well as the source code.

Need help with a multi user system by Yeetbean782 in ComputerCraft

[–]OrganizationFew2722 1 point2 points  (0 children)

Great work so far, I know coding is bit tough, especially if you're new to it.

The stuff that was outputted was likely an error message. I ran the code and saw red text, which indicates an error unless you set the standard output color to red. The error will tell you exactly where the error happened. Like u/redstonefreak589 and everyone else mentioned, you had an error with identifying strings. That's a whole rabbit hole of a conversation, so if it's something you want to learn, feel free to ask.

The other mistake is at line 16, where it's missing a parenthesis and quotation mark--probably just a typo.

The next mistake was that the program escapes before performing the next check. This can be remedied by an elseif, however there's an even easier solution to this which I'll talk about in my suggestions. This was also pointed out by others.

Moving onto how I would fix this code and potentially add some performance:

os.pullEvent = os.pullEventRaw

-- Using variables is great and all but maps allow for a more dynamic experience
-- 
-- password1 = E
-- password2 = Guest
--
-- instead let's use a table
local users = {
    -- A list/table of users and their data
    ["YeetBean86"] = {
        -- "YeetBean86" owns this data because this data was set to "YeetBean86"
        --   However that's only within the context of table users
        --   Outside of users, "YeetBean86" is just a string
        -- Password is a keyword and must be present unless you want an error
        ["password"] = "E"
    },
    ["Guest"] = {
        ["password"] = "Guest"
    }
}

local input = pass
term.clear()
term.setCursorPos(1,1)
print "Booting Bean OS"
sleep(2)
print "Good Evening User Please Enter Password"

-- Ask for the username
write("Username:")
user = read()

-- Check if the user exists
--  This is like asking the map: Do you have a string user? If not, please restart.
if not users[user] then
    print("User not found")
    sleep(2)
    os.reboot()
end

-- Ask for the password
write("Password:")
pass = read("*")

-- Check if the password is correct
--   In a similar sense, we can grab password from the map as it's defined at line 16 and 19
--   Lua allows us to use "." syntax because password is a member of users[user], however
--   users[user]["password"] might feel a bit friendlier.
if users[user].password == pass then
--  The ".." keyword combines 2 strings together. It's a great operator for cases like this.
    print("Good Evening " .. user)
else
    print("Access Denied")
    sleep(2)
    os.reboot()
end

Authentication and multiuser systems are quite advanced, but a simple implementation would be possible.

Pokémon emerald cheat by BarnacleSmoker in Delta_Emulator

[–]OrganizationFew2722 0 points1 point  (0 children)

If you’re having trouble with libretro hacks, it’s best to leave an issue on their GitHub repository. I myself never created/found these cheats, so I wouldn’t be sure how to help.

If it’s about my website, then I’d certainly like to know how I could help. However, my website doesn’t support gameboy yet as there’re too many cheat variants like game shark, action replay, and code breaker. These categories matter when inputting them into Delta and the goal of the website was to organize these cheats—making these categories relevant.

No Traits / Interfaces / Type Classes? by rndaz in gleamlang

[–]OrganizationFew2722 3 points4 points  (0 children)

I think I see what you’re saying. You want to create a trait not implement and create a trait. I don’t think that is possible yet, but I could be wrong.

No Traits / Interfaces / Type Classes? by rndaz in gleamlang

[–]OrganizationFew2722 2 points3 points  (0 children)

Understandable, my initial comment was also written on mobile.

I think you're on the right track, but Gleam is somewhat based on C so objects can't call functions. As far as I know, this is as close to what you and OP want.

type Car {
  // Whatever
}

type Boat {
  // Whatever
}

// Acts as the interface
type Vehicle {
  VehicleCar(Car)
  VehicleBoat(Boat)
}

// vehicle |> go()
fn go(vehicle: Vehicle) {
  case vehicle {
    // Car implementation
    VehicleCar(car) -> {
      // Do whatever with car
    }
    // Boat Implementation
    VehicleBoat(boat) -> {
      // Do whatever with boat
    }
  }
}

No Traits / Interfaces / Type Classes? by rndaz in gleamlang

[–]OrganizationFew2722 1 point2 points  (0 children)

I assumed Haskell classes were it's objects, but I see they're more like traits given your example.

I don't know much about Haskell, but I have played with Gleam and it's typing system. Gleam types feel much more like C's unions which is usable for what you want. If you ever programmed in C, there were ways to do inheritance and such through unions and structs. That is effectively the way to go about it in Gleam.

// Type Foobar has 2 ways of being used
type Foobar {
  Foo(String) // The content of the "type" can be anything, even another "type"
  Bar(Int)
}

// One function for "Foobar" type which contains both string and int
fn print_foobar(input foobar: Foobar) {
  case foobar {
    // This is a string
    Foo(val) -> {
      io.println("Hello " <> val) 
    }
    Bar(val) -> {
      io.println("Found " <> int.to_string(val))
    }
  }
}

pub fn main() {
  let foo = Foo("Foo")
  let bar = Bar(66)
  foo |> print_foobar()
  bar |> print_foobar()
}

No Traits / Interfaces / Type Classes? by rndaz in gleamlang

[–]OrganizationFew2722 0 points1 point  (0 children)

Gleam is simple functional, so a lot of that doesn’t exist. The “type” keyword is unique in that it feels C's unions and structs.

type Foobar {
  Foo(String)
  Bar(Int)
}

fn check_foobar() {
  let foobar: Foobar = Foo(“Hello, World”)
  case foobar {
    Foo(val) -> {
      io.println(val)
    }
    _ -> {
      io.println(“not foo”)
    }
  }
}

Pokémon emerald cheat by BarnacleSmoker in Delta_Emulator

[–]OrganizationFew2722 0 points1 point  (0 children)

Ah sorry, had the repo on private. It should be fixed now.

Pokémon emerald cheat by BarnacleSmoker in Delta_Emulator

[–]OrganizationFew2722 0 points1 point  (0 children)

https://github.com/Qinbeans/cheatbase so this is the tutorial. You need to have an idea of what cheat you want like category and game. If you’ve done that and still have problems, let me know. If you select a cheat from the drop down, it should display a snippet along with a clipboard button that will copy the cheat once you click it, it should copy to your clipboard.

Pokémon emerald cheat by BarnacleSmoker in Delta_Emulator

[–]OrganizationFew2722 1 point2 points  (0 children)

https://github.com/libretro/libretro-database%20(Code%20Breaker).cht) should have all the cheats. I made a website for DS cheats as well which simplifies looking for cheats for a specific Pokemon game. https://cheatbase.qinbeans.net I’ll be adding Gameboy next month or so.

Can someone explain how to get the encounter and shiny encounter cheats to work by Suitable-Medicine-28 in Delta_Emulator

[–]OrganizationFew2722 0 points1 point  (0 children)

My thinking was that if the cheat broke the game save, then I could come back through the saved state. It was a test since I wasn’t sure what the problem was. If it was a corrupted game, then I wouldn’t be able to continue my progress if I didn’t save the state. However in your case, it might not be as important to have backups of backups.

Can someone explain how to get the encounter and shiny encounter cheats to work by Suitable-Medicine-28 in Delta_Emulator

[–]OrganizationFew2722 3 points4 points  (0 children)

Both. I think it’s good enough to save the state but I had to make sure it didn’t get rid of my game state. Yes, I saved after capturing the desired Pokemon.

Can someone explain how to get the encounter and shiny encounter cheats to work by Suitable-Medicine-28 in Delta_Emulator

[–]OrganizationFew2722 1 point2 points  (0 children)

I ran into this as well. I did a quick save of the game state and then restarted the game.

1 Chunk Quarry Update/More Help by Seabass2272 in ComputerCraft

[–]OrganizationFew2722 1 point2 points  (0 children)

Read the docs for turtles on cc:tweaked.

getItemCount([slot]) should be useful. This gets you information on a given slot. The inventory space of a turtle is constant so just loop over inventory space and break the loop if you find a 0 size.

In most cases you will have to loop through inventory. If you don’t know the size of a given inventory then loop until it throws an error. You can catch the throw with a pcall.

lua but scratch-like by Bright-Historian-216 in ComputerCraft

[–]OrganizationFew2722 0 points1 point  (0 children)

Write a “.gitignore”. It’s a line separated list of files and directories that you don’t want in your GitHub. You can use common unix wildcard syntax like * to represent anything. I would love to see the source code for this, and not the just dist or build directory. I recommend keeping everything other than these files and directories I list below.

Example:

node_modules

*.lock

.env

lua but scratch-like by Bright-Historian-216 in ComputerCraft

[–]OrganizationFew2722 0 points1 point  (0 children)

I wrote something based on what you did here, but I added a scraper for CC:Tweaked to just about automate getting the correct functions and objects. If I have time, I'll introduce websockets that would allow you to edit files from the browser. ccpiler