Lamecraft, developed by Drakon, is aiming to create the Indie Hit Minecraft on to the PSP.

Post tutorial Report content RSS feed How to mod the Lamecraft Source

I present a incredibly great tutorial by 10$man on how to mod the Lamecraft source.

Posted by on - Intermediate Client Side Coding

Modding Lamecraft Source.
Tutorial By:10$man

Intro
Hello fellow LameCrafters ;) . This is a tutorial on modding the source code of lamecraft to better suite your playing style. (speed,camera sensitivity,etc.) I am assuming by following this tutorial you already know basic knowledge of programming, or understand fundamentals.

Aquiring the source.
I am understanding that some people do not understand SVN. This is not a problem. To download from an SVN Repository you can follow these steps:
1.
You first must download an SVN client. I will use SVN Tortoise.
2.
once you have downloaded and installed, you must go and make a new folder. lets say:
LameCraft SourceCodes
3.
Now you must right click that folder. when you right click you should now see new options. they will say:
SVN checkout
TortoiseSVN
Go ahead and put your cursor over TortoiseSVN. A drop down menu will apear.
now click export on the drop down menu.
a little window will pop up.
4.
In this window you will see a box titled URL of repository. in this box copy and paste this in:

code:

5.
Now you click Ok at the bottom of the window.
You should see the download start.
when it is finished Congrats you have aquired the source!

How to edit the source.
Now that you have the source you probably want to do something with it :P
you can download many different editors dev-c++, Code::Blocks, Visual studio,etc. also you could use notepad.

I recomend Code::Blocks.

go into the folder you download source to.
open the folder called Lamecraft.
You now probably see many files with the extensions .h and .cpp. These are C/C++ source files.
The one we are going to edit in this tutorial is:
StatePlay.cpp

Ok once you have this file open you should see much code. this code might or might not make sense to you.
This is ok :P

Go ahead and scroll down untill you see:

code:
GRAVITY = -9.8f;
JUMPVELOCITY = 4.0f;
CLIMBVELOCITY = 2.5f;

It isn't far down on the source.

Ok
Right here you can see were Drakon sets the GRAVITY speed, The Jump speed and the climb speed. If you don't like the original jump height you can add maybe 2 to the JUMPVELOCITY:

code:
GRAVITY = -9.8f;
JUMPVELOCITY = 6.0f; //<- I set it to six now.
CLIMBVELOCITY = 2.5f;

Ok so once you have done what you want go ahead and scroll down some more until you see:

code:
cameraSpeed = 2.0f / 60.0f;
cameraMoveSpeed = 4.0f/ 60.0f;

This sets the camera speed. (obviously :P )
Now pay attention. setting the SECOND NUMBER up will make your camera move SLOWER. EX.

code:
cameraSpeed = 2.0f / 100.0f;

is slower then

code:
cameraSpeed = 2.0f / 40.0f;

Now you should have an understanding of how to change things. Obviously these are simpler things to change. more advanced things require C/C++ knowledge. I am not giving a class on C/C++ :P

Compiling the source:
Ok now you have made your changes, how do you compile it?
simple. (or not so simple)
first you must download PSPSDK
Install it.

--You can also look at the readme in your Lamecraft source file.
Now that it is installed goto your lamecraft source folder.

We must now compile the Music library.

Open the folder inside it called 3libs.

double click the file called "compile.bat"

once it is finished compiling goto your pspsdk folder (C:/PSPSDK)
now goto
PSP>include
create a folder called noisepp
and copy all the files with the extension of .h to there (C:/pspsdk/psp/include/noisepp)

now go back to the route pspsdk folder and copy the file libNoisepp.a to
C:/pspsdk/psp/lib

now you can go to the source of lamecraft and click on compile. It should compile smoothly (with a warning or two)

Congrats :D you have modded Lamecraft

HINTS:
Don't replace your original Eboot.
Don't edit things you don't understand

Comments
BIGBiRdx23
BIGBiRdx23

Great Tutorial!

Reply Good karma Bad karma+1 vote
Fragon
Fragon

this is a great Tut nice 10$man ;)

Reply Good karma Bad karma+1 vote
zombiekila
zombiekila

Not trying to be rude but are you even working on lamecraft? -.-

Reply Good karma Bad karma+1 vote
Fragon
Fragon

well that was rude, even tho u said ur not trying to, BE PATIENT!!!

Reply Good karma Bad karma+1 vote
monsterbasher1233 Author
monsterbasher1233

Just remember i didn't create this tutorial, all the fame goes to 10$man.

Reply Good karma+1 vote
Gabriel25Gatens
Gabriel25Gatens

thanks

Reply Good karma Bad karma+1 vote
RedPanzershrek
RedPanzershrek

Im comfused, it seems all technology stuff just messes with me when we try to understand it. AArgh!!!!
You are smart people since you actually know this stuff.
I should start looking for those book for dummies!

Reply Good karma Bad karma+2 votes
Dark_Demon_Shadow
Dark_Demon_Shadow

Same here .__.

Reply Good karma Bad karma+1 vote
Birath123
Birath123

In my 3libs folder there isn't a compile.bat. ARRGGHH!!!!!!!!!!

Reply Good karma Bad karma+1 vote
Birath123
Birath123

Can someone help me out here? I tried doing everything. Copied the files to where they should go. I compiled noisepp, and when i compile the game, I get [ERROR 2]

Reply Good karma Bad karma+1 vote
WeeGee9000
WeeGee9000

Try compilling as an Administrator (Win7 or Vista)

Reply Good karma Bad karma+1 vote
Birath123
Birath123

I have Windows XP.

Reply Good karma Bad karma+1 vote
jingsaw2859
jingsaw2859

Help! I keep getting the same error! I have pspsdk 0.11.2 help!!

Reply Good karma Bad karma+1 vote
Birath123
Birath123

YAY!!!!!!!!!! I copied the wrong files the last time. I got the right files this time, got my EBOOT, And now you guys get lamecraft with a HUGE map!!!!!!!!!!!!!!!!!

Reply Good karma Bad karma+2 votes
domis4
domis4

did everything, copied everything. but doesnt work :(

make[1]: *** [Aurora/Graphics/TextureManager.o] Error 1
make[1]: Leaving directory `C:/Users/dominik/Documents/Lamecraft Source Code'
make: *** [build_game] Error 2

Reply Good karma Bad karma+2 votes
Guest
Guest

This comment is currently awaiting admin approval, join now to view.

jingsaw2859
jingsaw2859

Help! I keep getting the same error! I have pspsdk 0.11.2 help!

Reply Good karma Bad karma+1 vote
domis4
domis4

EDIT: works, you need the latest pspsdk. 11.x got my eboot :)

Reply Good karma Bad karma+2 votes
Skullboy99
Skullboy99

But how do we add More Blocks?

Reply Good karma Bad karma+1 vote
Guest
Guest

This comment is currently awaiting admin approval, join now to view.

IT_Trinakria
IT_Trinakria

..... I don't have EBOOT file.

Reply Good karma Bad karma+1 vote
Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Icon
Multicraft
Platforms
Windows, Mac, Linux, iPhone, Android, PS3, PSP
Developer & Publisher
Drakon Game Development
Engine
Custom
Contact
Send Message
Homepage
Drakon.com.pl
Release date
Game watch
Start tracking
Tutorial
Browse
Tutorials
Share
Related Games
Multicraft
Multicraft Adventure
Related Groups
Drakon Game Development
Drakon Game Development Developer & Publisher