QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

Madness Interactive Lua

This is a discussion on Madness Interactive Lua within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Hey guys, long time no talk. lol. I've been pretty busy lately, what with my girlfriend, and the play (if ...

Reply
 
LinkBack Thread Tools
Old 12-11-2005, 03:54 PM   #1
 
Join Date: Dec 2005
Posts: 82
Trader Feedback: 0
Lightbulb Madness Interactive Lua Port: Reworking the System

Hey guys, long time no talk. lol.

I've been pretty busy lately, what with my girlfriend, and the play (if you read my block king post).

But honestly, I had completely forgotten how to program in lua at all. So i needed a lovely refresher, which is why i made The Block King.

Anyway, after the Block King, I started re-looking at the Madness coding that was being worked on. BTW, TPPlayer, you're link is down. Lordy, do you think you could send me a copy of the work?

Ok. So when I looked at the code, I decided that it was complete ****-i-many crap. lol

There is no way anyone can base a game around that code.

All it is is smoke and mirrors.

That is why I've actually been completely reworking the code, which Can be made into a game.

What we have here is the basic physics for a hand, bullet firing, and enemy hit detection.

There are 3 Weapons, 2 of which are actually working. The Pistol and the Automatic. The shotgun however requires an instance of more than a single bullet, which is what I've been using for the pistol and the automatic. Thus meaning more work, which will be able to be done, eventually. lol. To top it off, might as well use more than one instance for each of the weapons. It'll make everything good and equal.

EDIT:
Actually, come to think of it. This engine I'm writing doesn't even Need to be a Madness game. It can be used for a basic skeleton of a game, with different mods, and skins over top. That would be really cool, wouldn't it? Imagine making a skin where you were a Tamagochi with a shotgun blasting away at monkeys and flying tea cups.
Actually. Don't imagine that.

Instructions:

The bullet will follow the slope of the line.

Analog to control the line.

Circle to fire the bullet.

Triangle Reload.

Left and Right Change Weapons

Hope ya'll like it!

EDIT=================

I've now included the original files, including graphics, as requested by rodenthunter
Attached Files
File Type: zip Hand Physics.zip‎ (1,020 Bytes, 106 views)
File Type: zip Madness_Lua v0.3.zip‎ (36.5 KB, 154 views)

Last edited by Neodudeman; 08-15-2006 at 03:17 PM..
Neodudeman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-11-2005, 04:02 PM   #2
 
gamesnake's Avatar
 
Join Date: Jun 2005
Location: Canada, eh? Firmware: 2.71
Posts: 271
Trader Feedback: 0
Default

Woah. I wish I have a 1.0-2.0 4ight now...
gamesnake is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-11-2005, 05:53 PM   #3
 
intheend's Avatar
 
Join Date: Sep 2005
Posts: 79
Trader Feedback: 0
Default

the hand goes out to far and you need walls but its sweet
intheend is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-11-2005, 06:36 PM   #4
 
Noriyuke's Avatar
 
Join Date: Sep 2005
Location: Palm Bay, FL
Posts: 230
Trader Feedback: 0
Default

Very cool, you should add the ability to throw weapons, kind of like use them as projectile weapons. Shooting shouldnt be so difficult Fight for Freedom got it down in a snap. Dunno about angles but then again im not coding any of it :-/
Noriyuke is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-11-2005, 09:35 PM   #5
OMGZ0R this guy is 1337
 
elevationsnow's Avatar
 
Join Date: Aug 2005
Location: Minnesota, MN (originally england)
Posts: 218
Trader Feedback: 0
Default

i should hope throwing weapons shouuld be included as they are in the real version of madness interactive and thats what hes porting good luck also maybe you should talk to the creator of madness interactive before porting as it is getting to be a pretty big game
__________________
[IMG]http://img26.imageshack.us/img26/4208/sigcopy0lu.jpg[/IMG]
elevationsnow is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-11-2005, 09:41 PM   #6
OMGZ0R this guy is 1337
 
elevationsnow's Avatar
 
Join Date: Aug 2005
Location: Minnesota, MN (originally england)
Posts: 218
Trader Feedback: 0
Default

p.s.
Code:
 int mode=1; ///mode is current action the sprite is doing
 int sx= 10, sy=137;  ///location from top left of image
 int fall = 0;  // is falling?
 int jump = 0; // is jumping?
 int jumpheight = 50; //how high?
 int maxfall = -54; // maximum before start to fall
 int floor = 137
if(pad.Buttons & PSP_CTRL_UP && fall == 0 && jump == 1000000){ // if you press up and not already jumping
                fall = 1; // you are falling!
                jump = jumpheight; // make the value you add to y the jumpheight
                mode = 3; // make it look like your jumping
}
 if(jump < 1000000){ // check your jumping
         if(jump > maxfall){ // check you havent got past the max you can jump
                 jump = jump-8; // if you have start going down
         }
         sy-= jump; // move the guy
         
 }
 //jump stop
 if (sy > floor) {
        fall = 0;
        jump = 1000000;
        mode = 1;
        sy = floor;
 }
thats in c but ive got it all commented so you should be able to right it in lua

p.s. dont forget to initialize the variables teh jump = 100000 is just saying make jump a big number make sure that value is the same as the one in the if

and not sure if this is in lua but && means "and" and || means "or"

137 is where i placed my ground
__________________
[IMG]http://img26.imageshack.us/img26/4208/sigcopy0lu.jpg[/IMG]
elevationsnow is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-12-2005, 02:33 AM   #7

Cool Developer
 
Sturmeh's Avatar
 
Join Date: Nov 2005
Location: Australia
Posts: 1,301
Trader Feedback: 0
Default

Hey Neodudeman, im wanting to help you with this, i added you on aim, its lordsturm2.. ( .. being something ull work it out ) anyway i fixed your jump script in LUA.

If you want it just talk to me on AIM... ( THANx! )

Jump Script Fix

- Now has variable timer, jumps for so long then cancles SQUARES effect, until square is removed... but a buffer is present to stop people from quad tripple jumping and such.

NOTE: Im a fast learner, and ive never used Lua before, but hey i wanna learn so i can make my own aps! thanks for the opputurnity with such a cool idea i would have never considered!
Sturmeh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-12-2005, 06:25 AM   #8
 
Join Date: Dec 2005
Posts: 82
Trader Feedback: 0
Default

Hurrah! Thanks for your support dudes!

Ok Lord Strum, I'll contact you asap. We can Defintely get this project done with TeamWork! Buwahahahahaha!

lol.... so gay...

Anyway, i'm at school right now, but when I get home, I'll contact you and what not, and we'll discuss this project. I'm extremely busy at the moment though, BUT!!! Once everything is out of the way, We shall Defintely Kick some Arse with this Game! btw, can you post your code for the jump script fix?

and ty for your script Elevation!

But LordStrum, how did you know my AIM? It's not on the board.... :-?

lol. My Aim is xNeodudemanx

Would anyone else like to help, cause we could sure use it..

Last edited by Neodudeman; 12-12-2005 at 06:45 AM..
Neodudeman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-12-2005, 01:17 PM   #9
 
Join Date: Jun 2005
Posts: 152
Trader Feedback: 0
Default

Quote:
Originally Posted by Neodudeman
Hurrah! Thanks for your support dudes!

Ok Lord Strum, I'll contact you asap. We can Defintely get this project done with TeamWork! Buwahahahahaha!

lol.... so gay...

Anyway, i'm at school right now, but when I get home, I'll contact you and what not, and we'll discuss this project. I'm extremely busy at the moment though, BUT!!! Once everything is out of the way, We shall Defintely Kick some Arse with this Game! btw, can you post your code for the jump script fix?

and ty for your script Elevation!

But LordStrum, how did you know my AIM? It's not on the board.... :-?

lol. My Aim is xNeodudemanx

Would anyone else like to help, cause we could sure use it..
I would like to help out a bit, i can give you sound effects, i have all the sound affects we could use, guns all the way to bombs

I can also do some code
monster356 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-12-2005, 01:47 PM   #10
 
Join Date: Dec 2005
Posts: 82
Trader Feedback: 0
Default

great! That'd be sweet! Though I was thinkin about taking the Actual sounds from the gameplay itself. I think i'll go contact the madnesscombat forum, and tell them we're doing this. We could prolly get some help from there!

Btw, what's ur screename? I kinda wanna get everyone's screen name on AIM so we can talk about this fast.

Last edited by Neodudeman; 12-12-2005 at 01:56 PM..
Neodudeman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-12-2005, 02:16 PM   #11
 
rodenthunter56x's Avatar
 
Join Date: Aug 2005
Posts: 142
Trader Feedback: 0
Default

Why does my flash mx 8 always say unexpected file format when trying to open MI source? Could u maybe tell me where i can get all the images and sounds.
Thanks
rodenthunter56x is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-12-2005, 02:24 PM   #12
 
Join Date: Dec 2005
Posts: 82
Trader Feedback: 0
Default

MI source?
Neodudeman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-12-2005, 02:29 PM   #13
 
rodenthunter56x's Avatar
 
Join Date: Aug 2005
Posts: 142
Trader Feedback: 0
Default

http://www.flecko.net/source.html
Theres the website for the source code
rodenthunter56x is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-12-2005, 02:29 PM   #14
 
rodenthunter56x's Avatar
 
Join Date: Aug 2005
Posts: 142
Trader Feedback: 0
Default

where did u get the images?
Sorry for double posting
rodenthunter56x is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-12-2005, 02:31 PM   #15
 
Join Date: Dec 2005
Posts: 82
Trader Feedback: 0
Default

well with the images, i opened up the Madness.fla file, and copied the guy's head, and body, and feet, and then exported the image as a PNG so that it would be readable by lua
Neodudeman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-12-2005, 02:34 PM   #16
 
rodenthunter56x's Avatar
 
Join Date: Aug 2005
Posts: 142
Trader Feedback: 0
Default

i having trouble opening that file i get unexpected file format and it wont open. I trying to add some guns in.
rodenthunter56x is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-12-2005, 02:40 PM   #17
 
Join Date: Dec 2005
Posts: 82
Trader Feedback: 0
Default

you should really take this to the flecko.net forums.... Heres a link, cause I just happen to have that forum open!

http://www.flecko.net/forums/index.php?showforum=8
Neodudeman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-12-2005, 05:55 PM   #18
 
Join Date: Aug 2005
Posts: 23
Trader Feedback: 0
Default

Hey neomandude ill help out, not sure how. I can help with really anything, i can try to see if i can contact the creator of the madness for pc? well i just really wanna get involved with this psp stuff, then maybe i can learn some stuff and lead off on my own....
Lizardking is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-12-2005, 06:36 PM   #19
 
rodenthunter56x's Avatar
 
Join Date: Aug 2005
Posts: 142
Trader Feedback: 0
Default

I'll put in some guns probably by tomarrow night if you want and fix the hand going to far. Just woundering if you have a version were the jump is fixed because that is what someones said they did.
rodenthunter56x is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-12-2005, 06:44 PM   #20
 
Join Date: Jun 2005
Posts: 152
Trader Feedback: 0
Default

oh yea, those sounds are the actual ones!
monster356 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-12-2005, 07:11 PM   #21
 
Join Date: Dec 2005
Posts: 82
Trader Feedback: 0
Default

Ya. Jump is fixed. I also shortened the hand lenght... infact, limme keep updates on the first page
Neodudeman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-12-2005, 09:53 PM   #22
 
rodenthunter56x's Avatar
 
Join Date: Aug 2005
Posts: 142
Trader Feedback: 0
Default

My psp is 2.00 and is screwing up in lua player so just woundering if anyone with 1.5 could test this and tell me what happens.
Try pressing the up key on the directional key and tell me what happens.

http://s62.yousendit.com/d.aspx?id=3...M30M1O7AVTVD21
rodenthunter56x is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-12-2005, 10:22 PM   #23

Cool Developer
 
Sturmeh's Avatar
 
Join Date: Nov 2005
Location: Australia
Posts: 1,301
Trader Feedback: 0
Talking CodeRZ

hahaha, i could easily take every sound and image out of the Madness Combat file... Im not sure about music... i think thats all in the mrsound.swf file...

But anyway i have contact with the guy that made Madness Interactive, as he is helping our group make a MMORPG with Madness characters, in ISOmetric, for computer. im not sure how that will go, but yeh im supoorting this one...

Bah, im still banned from Toc2ra, could someone please talk to nician and tell him to unbann me...

Uh id rather give you the jump script, cuz i need to explain a bug in one, now that i have 2, but theres a bug in the one that is Exactly the same as the one in the original game...
Sturmeh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-12-2005, 11:10 PM   #24
 
Join Date: Jul 2005
Posts: 14
Trader Feedback: 0
Default

When i press up it gives me the shotgun, however, when the character is faced left the hand no longer is centered on the body, instead it is centered to the right of the body, however when the character is faced right, the hand is centered on the body.
Death259 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-12-2005, 11:56 PM   #25

Cool Developer
 
Sturmeh's Avatar
 
Join Date: Nov 2005
Location: Australia
Posts: 1,301
Trader Feedback: 0
Default

yes i noticed that too, im planing to work out how to make the hand rotate in comparasion of its co-ordinates with the head, also ill fix rodenthunters gun centering, and my jump script is still better ^_^...
Sturmeh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-13-2005, 12:32 AM   #26

Three Years Old
 
Freshmilk's Avatar
 
Join Date: Dec 2005
Location: Ermmm... Pass?
Posts: 2,239
Trader Feedback: 0
Default

This game is gonna rock when its finished - can't wait!!!
Freshmilk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-13-2005, 02:19 AM   #27

Cool Developer
 
Sturmeh's Avatar
 
Join Date: Nov 2005
Location: Australia
Posts: 1,301
Trader Feedback: 0
Default

Ekk, i so need a good LUA editor, cuz right now im using notepad, and i keep getting the "this" expected near "=" ...

I fixed that once by changing a typo y=y=5 into y=y+5, so im guessing its just trying to split a misequasion into 2 thens... i have no idea...

Anyway with the latest update, when i can manage...

There will be, one weapon switching.

- Hand, Shotgun. ( Left and right d-pad to switch weps. )
- Fixed One press Jump with limits.
- Fixed "Hand" range...
- Fixed shotgun center. (Requires unique details for right and left. )
- Sound when pressing X whilst shotgun selected. ( No Projectiles )
Sturmeh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-13-2005, 04:05 AM   #28
 
rodenthunter56x's Avatar
 
Join Date: Aug 2005
Posts: 142
Trader Feedback: 0
Default

Thanks guys 2.00 Lua wont even run the script so i might downgrade so i can do some real work. Also a good Lua text editor is Notepad ++.
rodenthunter56x is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-13-2005, 06:20 AM   #29
 
Join Date: Dec 2005
Posts: 82
Trader Feedback: 0
Default

Great work LordStrum! But... uh, how bout sending me the code then? lol. And where do you live? I've been noticing that your posts are pretty late at night, and early in the morning, according to my time, which suggests that you live in a different time zone..

Which will complicate contacting you.

So anyway, post the updated source/pngs, and i'll put it in the first post, along with the updates.
Neodudeman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-13-2005, 12:18 PM   #30
 
rodenthunter56x's Avatar
 
Join Date: Aug 2005
Posts: 142
Trader Feedback: 0
Default

Hey LordStrum did you already fix the shotgun thing or did u write your own script becasue i'm planing to try to add maybe 2 more guns and try to set it up so it has an invisuable bullet. Maybe setup a target. If you fix the shotgun thing could you send it to me thanks.
rodenthunter56x is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
interactive , lua , madness

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 03:19 PM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us