Monday, April 2, 2018

ELM327

This is a repost from a forum ive found online , if your ELM327 stopped working here's a quick fix if the legs of your tool are shorting.



Thursday, February 1, 2018

[Tutorial]PS2LuaPlayer Simple XMB Menu

Well-well since i got my hands on my old ps2 console and all of the required accessories ill try to contribute as much as i can.

From a small search i was doing on the forums i saw that a ps2 xmb styled menu got a lot of you excited , hence im creating this small tutorial on how to create a really simple menu in Lua.
Im using PS2 Lua Player v0.20(R3)

Heres how your program will look:

main.lua
Coding:


-- images used for navigation/menuicons
pic1=Image.load("Theme/1.png")
pic2=Image.load("Theme/2.png")
pic3=Image.load("Theme/3.png")
pic4=Image.load("Theme/4.png")
pic5=Image.load("Theme/5.png")
pic6=Image.load("Theme/6.png")
pic7=Image.load("Theme/7.png")
pic8=Image.load("Theme/8.png")
--menu
selected=1
maxselected=8
while true do
pad=Controls.read()
--How Controls react on left/right
if pad:right() and oldpad:right() ~= pad:right() then
selected = selected+1
end
if pad:left() and oldpad:left() ~= pad:left() then
selected = selected-1
end
if selected > maxselected then
selected=1
elseif selected <=0 then
selected=maxselected
end
if selected==1 then
screen:clear()
screen:blit(0,0,pic1)
end
if selected==2 then
screen:clear()
screen:blit(0,0,pic2)
end
if selected==3 then
screen:clear()
screen:blit(0,0,pic3)
end
if selected==4 then
screen:clear()
screen:blit(0,0,pic4)
end
if selected==5 then
screen:clear()
screen:blit(0,0,pic5)
end
if selected==6 then
screen:clear()
screen:blit(0,0,pic6)
end
if selected==7 then
screen:clear()
screen:blit(0,0,pic7)
end
if selected==8 then
screen:clear()
screen:blit(0,0,pic8)
end
--Actions for each icon selection
if pad:cross() and oldpad:cross() ~= pad:cross() and selected==1 then
dofile("Enter Here your next lua file")
end
if pad:cross() and oldpad:cross() ~= pad:cross() and selected==2 then
dofile("Enter Here your next lua file")
end
if pad:cross() and oldpad:cross() ~= pad:cross() and selected==3 then
dofile("Enter Here your next lua file")
end
if pad:cross() and oldpad:cross() ~= pad:cross() and selected==4 then
dofile("Enter Here your next lua file")
end
if pad:cross() and oldpad:cross() ~= pad:cross() and selected==5 then
dofile("Enter Here your next lua file")
end
if pad:cross() and oldpad:cross() ~= pad:cross() and selected==6 then
dofile("Enter Here your next lua file")
end
if pad:cross() and oldpad:cross() ~= pad:cross() and selected==7 then
dofile("Enter Here your next lua file")
end
if pad:cross() and oldpad:cross() ~= pad:cross() and selected==8 then
dofile("Enter Here your next lua file")
end
screen.flip()
screen.waitVblankStart()
oldpad = pad
end
Happy coding. 

Thursday, January 25, 2018

[Tutorial] PS2SDK on Windows10

      How to get the ps2sdk to work on your windows10 system


 What you will need: 


Step 1: (Prepare MinGW)
Install MinGW in C



Extract the mingw-lackages-ps2dev-1.0 and paste them inside MinGW directory C:/MinGW
If it asks to replace any files select NO.

                                  


Step 2: (Prepare msys)
Install msys in C
Go to msys/1.0/etc/profile , edit it and add the following:
export PS2DEV=/usr/local/ps2dev
export PATH=$PATH:$PS2DEV/bin
export PATH=$PATH:$PS2DEV/ee/bin
export PATH=$PATH:$PS2DEV/iop/bin
export PATH=$PATH:$PS2DEV/dvp/bin
export PS2SDK=$PS2DEV/ps2sdk
export PATH=$PATH:$PS2SDK/bin
export PS2SDKSRC=$PS2DEV/ps2sdksrc
export PS2LIB=$PS2DEV/ps2lib
export PS2ETH=$PS2DEV/ps2eth
export GSKITSRC=$PS2DEV/gsKit
export C_INCLUDE_PATH=$PS2DEV/ee/ee/include
cd "/C/msys/1.0/"

Then navigate to msys/1.0/bin rename the rxvt.exe to something else (rxvtbak.exe)

                                

Navigate to  msys/1.0/local , extract and copy the ps2dev folder and its contents

                              

Step 3: (Policy Editor)                             

Step 4: (Environment Path)
                           

Step 5: (Install GIT)

Open your msis , and type git to check if it works
if you type now git , svn or wget if the installation was made succesfully will show you as a result the correct syntax to use the command. If not try restarting your system.



Step 6: (Make ELF)
Navigate to the folder where you have your example files (youll need to have a .c file and a makefile) and type make.You should see the same massage and now in the same directory you will have an .elf file.