Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

pedrosgali

Members
  • Content Count

    42
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by pedrosgali

  1. Thanks man, I used the library from this to make Minejaro. It's a front end GUI for openOS, if you like the style of this you should check it out. It needs looking at again really but I rarely have time these days.
  2. Hey guys, finally added the library for calling images yourself. Sorry it took so long but I wrote a new compression method that will save you a lot of RAM, this is done automatically on loading an image. It also required a new render method which is only marginally faster but still a little faster. Happy painting
  3. Thanks man. I've been asked to start an after school club to teach kids the basics of programming using minecraft, just been looking through my old code to see what I can salvage.
  4. Hey guys, been away for a while. I'll post an API for displaying the images as stand alone data later tonight, didn't really think about it at the time lol.
  5. robot.turnLeft() is the command, all commands are in camelCase so the first word is not upper case but the first letter of each subsequent word is.
  6. Shouldn't it read robot.turnLeft() capitol L
  7. http://www.lua.org/manual/5.2/manual.html#lua_tonumberx
  8. I tend to use a slightly different method but the above example is perfectly fine, I'll post mine in case you find it easier and partly to show my favourite thing about coding... Mainly that there is never just one right answer. I do most of my processing in the loop so... local event = require("event") local keyboard = require("keyboard") local running = true while running do ev, p1, p2, p3, p4, p5 = event.pull(1, _, ev, p1, p2, p3, p4, p5) if ev == "key_down" then local char = keyboard.keys[p3] if char == "w" then --your move forward code block here
  9. Nickname: Pete Age: Too old to be playing Minecraft. Minecraft Name: PedrosGali IRC nick: pedrosgali
  10. Yeah, I wrote this before openOS was installable. It was OC 1.2 or something, the /lib folder was read only. *Edit: Can a moderator delete this thread as it is out of date and may cause confusion to some.
  11. Added a pretty picture so you have some idea as to what this is. Please excuse the bad resolution, I broke my good monitor so I'm stuck on low res.
  12. Actually it's a window manager, no desktop as such. It is literally a front end GUI for openOS. It does allow multiple 'window' programs to all be running at once and I do plan to add a desktop environment at a later date. I just can't figure out how to get icons and shortcut without the framerate going down the toilet. Yet. You're right about the pictures though, I need some screen shots. I'll put some up after work.
  13. Added basic text editor so you can now check a file without leaving the editor, just bring up a new window.
  14. I tend to opt for a boolian switch for exiting, running = true while running do run() end then you have a variable 'running' which can be toggled. Anywhere.
  15. I made a step sequencer as my first project for OC, I ran into this problem too. My solution as yet unmade was to have multiple computers each with a copy of the 'score'waiting for a midi tick from a server. My code is still in the showcase if you'd like to take a look.
  16. pedrosgali

    Minejaro

    Minejaro 0.1 Manjaro style front end for OC. ++ UPDATED ++ Now with text editing! Minejaro is currently only 5 files: A library to handle all the window spawning and such. A manager program that allows programs to run. 'konSoul' - a console program. 'Porpoise' - a file browser. 'Ate' - A Text Editor To those that like pastebin: Here's the pastebin links Screen.lua -- Install to /lib/screen.lua Manager -- Install to /bin/Manager konSoul -- Install to /bin/konSoul Browser -- Install to /bin/Brow
  17. This idea is awesome, I have no clue about your networking problem however. I really want to see 4 player pong for this cabinet, each player takes one screen edge and any missing players their edge becomes a wall. So it could serve as 1-4 player pong!
  18. Hey man, thanks for the bug report. As far as I remember the game should only read the HDD when it loads an Image which is often as RAM limits the amount I can keep loaded. I'll look into events later today, This thing still needs an update but I've got a secret project in the works at the minute.
  19. It's a trading game, most things on the screen are buttons to click. Each station has 1 product that you can buy and up to 3 resources you can sell it to operate. Explore and find more stations and AI traders who take all your best trades. Also there is a close option in the menu.
  20. "cd" is the command to switch folders, so "cd SpaceGame0.1.1" then "space". You may have some trouble if you are not running in max resolution though.
  21. I have seen this game crash in many (sometimes spectacular) ways but this is a new one. Well done. Where are you launching the game from? did you navigate to the SpaceGame folder and launch from there? or did you do "SpaceGame/space" to launch? That would cause a crash sort of like this as the game would not find the right working directory and thus none of the assets. Hope this helps, and thank you for the bug report. Also this is due for an update soon, working on assets at the minute but in my copy Shipyards are in so you can buy multiple ships and there are a few pieces of equip
  22. You could try checking on the keypress if shift is down then use string.upper(char) Like this: if keyboard.isShiftDown() then --Shift pressed. char = string.upper(char) end print(char) Hope this helps --EDIT: After reading your post again it looks like your code will detect the pressing of shift as a keypress and print the result anyway. You'll have to account for that. Maybe like this: while true do ev, p1, p2, p3, p4, p5 = event.pull(.01, _, ev, p1, p2, p3, p4, p5) if ev == "key_down" then local char = keyboard.keys[p3] if char == "left_shif
  23. Wasn't the chat log scanner from another mod? by richard G perhaps? I had something like this set up when I was using CC and extra peripherals but as far as I know there is no peripheral that serves this function yet in OC. I might be wrong about that... I hope I am. If I am wrong someone please let me know so I can get the IRC feed to come up in my in game chat log
  24. type "edit <filename>". Happy coding
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.