PSP Coding
Would you like to react to this message? Create an account in a few clicks or log in to continue.

PSP Coding


 
HomeLatest imagesSearchRegisterLog in

 

 Help Please

Go down 
3 posters
AuthorMessage
SXYxJeff

SXYxJeff


Posts : 47
Points : 55
Reputation : 0
Join date : 2010-09-29

Help Please  Empty
PostSubject: Help Please    Help Please  I_icon_minitimeThu Sep 30, 2010 5:38 pm

hey can some one help me make nade/Rockets teleport to enemies. I got it to teleport to on but some how when i try adding +4 to the enemy pointer it dose not work
Back to top Go down
-LeetGamer-
Admin



Posts : 247
Points : 397
Reputation : 4
Join date : 2010-09-29
Age : 30

Help Please  Empty
PostSubject: Re: Help Please    Help Please  I_icon_minitimeThu Sep 30, 2010 5:44 pm

Do this first:

Code:

lui t0 $0880
lw t1 $3ffc(t0) // This is your flag address
bne t1 zero $Down to "//here"
nop
// Now we are going to store the pointer to the flag address (enemy 1)
lui t2 $Upper pointer
ori t2 t2 $Lower pointer
sw t2 $3ffc(t0)
//here

That will get the first enemy into are flag address, now I hope you can add 4 to it from there, then check if have gone to the last enemy like this:

Code:

Lui t0 $0880
Lw t1 $3ffc(t0)
Bne t1 zero $to jr ra
nop
Lui t2 $enemy 1 pointer
ori t2 t2 $enemy 1 pointer
sw t2 $3ffc(t0)
jr ra

Those are two different subroutines, but you can combine them into one.

If you need anything else let me know.
Back to top Go down
SXYxJeff

SXYxJeff


Posts : 47
Points : 55
Reputation : 0
Join date : 2010-09-29

Help Please  Empty
PostSubject: Re: Help Please    Help Please  I_icon_minitimeThu Sep 30, 2010 5:50 pm

ok now some question lol Razz

  • why do we use the flag address

    where i store and load the offsets

    when u say branch here do you mean the jr ra


thank for helping Smile
Back to top Go down
-LeetGamer-
Admin



Posts : 247
Points : 397
Reputation : 4
Join date : 2010-09-29
Age : 30

Help Please  Empty
PostSubject: Re: Help Please    Help Please  I_icon_minitimeThu Sep 30, 2010 5:55 pm


  • A flag address is something we use that is not being stored to by a code, like in your old code (That you showed me on aim) you had the address like this:

    lw t0 $XXXX(t0)

    or what ever, that address will constantly store that value, which is enemy 1, so we use a flag address to allow us to store a value to it and load it back without something over writting it

  • Something you will have to think about, you will learn better if I don't help you Wink

  • No I mean to the label here that I said like: //here
    Don't make that address a nop or anything though


np
Back to top Go down
EternalDarkness




Posts : 16
Points : 22
Reputation : 0
Join date : 2010-09-29
Age : 31

Help Please  Empty
PostSubject: Re: Help Please    Help Please  I_icon_minitimeThu Sep 30, 2010 6:51 pm

-LeetGamer- wrote:
Do this first:

Code:

lui t0 $0880
lw t1 $3ffc(t0) // This is your flag address
bne t1 zero $Down to "//here"
nop
// Now we are going to store the pointer to the flag address (enemy 1)
lui t2 $Upper pointer
ori t2 t2 $Lower pointer
sw t2 $3ffc(t0)
//here

That will get the first enemy into are flag address, now I hope you can add 4 to it from there, then check if have gone to the last enemy like this:

Code:

Lui t0 $0880
Lw t1 $3ffc(t0)
Bne t1 zero $to jr ra
nop
Lui t2 $enemy 1 pointer
ori t2 t2 $enemy 1 pointer
sw t2 $3ffc(t0)
jr ra

Those are two different subroutines, but you can combine them into one.

If you need anything else let me know.

errmm... sorry to interrupt
does it really need to be adding 4..as mine is +0570 for the next enemy
n furthermore my enemy x,y and z coordinates is not next to each other there is a 20 different between them

is it that all my pointer and offsets are wrong?
Back to top Go down
-LeetGamer-
Admin



Posts : 247
Points : 397
Reputation : 4
Join date : 2010-09-29
Age : 30

Help Please  Empty
PostSubject: Re: Help Please    Help Please  I_icon_minitimeThu Sep 30, 2010 6:57 pm

Hmmm, +0570? O_O Every enemy teleportation type of hack I've seen (I've seen a lot and made a few) used the enemy pointer that is += 4 from the last enemy (Starting with you) and the offsets are always 70 74 and 78 0.O
Back to top Go down
EternalDarkness




Posts : 16
Points : 22
Reputation : 0
Join date : 2010-09-29
Age : 31

Help Please  Empty
PostSubject: Re: Help Please    Help Please  I_icon_minitimeThu Sep 30, 2010 7:00 pm

-LeetGamer- wrote:
Hmmm, +0570? O_O Every enemy teleportation type of hack I've seen (I've seen a lot and made a few) used the enemy pointer that is += 4 from the last enemy (Starting with you) and the offsets are always 70 74 and 78 0.O
huh!! Shocked oh no... but my teleport to enemy and teleport nades worked --> u seen it in game rite

then y? Shocked Shocked Shocked Shocked
Back to top Go down
-LeetGamer-
Admin



Posts : 247
Points : 397
Reputation : 4
Join date : 2010-09-29
Age : 30

Help Please  Empty
PostSubject: Re: Help Please    Help Please  I_icon_minitimeThu Sep 30, 2010 7:02 pm

Well just because we have different co-ordinate doesn't mean one of use are wrong, there are at leased two known (To me) rocket/grenade co-ordinates.
Back to top Go down
EternalDarkness




Posts : 16
Points : 22
Reputation : 0
Join date : 2010-09-29
Age : 31

Help Please  Empty
PostSubject: Re: Help Please    Help Please  I_icon_minitimeThu Sep 30, 2010 7:04 pm

my rocket and grenades co-ordinates are the same ..and ya x,y,z are next to each other
Back to top Go down
-LeetGamer-
Admin



Posts : 247
Points : 397
Reputation : 4
Join date : 2010-09-29
Age : 30

Help Please  Empty
PostSubject: Re: Help Please    Help Please  I_icon_minitimeThu Sep 30, 2010 7:08 pm

I have a set that has the offsets fee8 feec and fef0 lol you got those?
Back to top Go down
EternalDarkness




Posts : 16
Points : 22
Reputation : 0
Join date : 2010-09-29
Age : 31

Help Please  Empty
PostSubject: Re: Help Please    Help Please  I_icon_minitimeThu Sep 30, 2010 7:11 pm

if u r saying of the grenades/rocket offsets, it is a NO... different again Oh man..
mine is 0060 0064 0068
Back to top Go down
-LeetGamer-
Admin



Posts : 247
Points : 397
Reputation : 4
Join date : 2010-09-29
Age : 30

Help Please  Empty
PostSubject: Re: Help Please    Help Please  I_icon_minitimeThu Sep 30, 2010 7:12 pm

Ya that is another set of them that DragonZero found too, I guess there are multible sets of co-ordinates for stuff Smile
Back to top Go down
EternalDarkness




Posts : 16
Points : 22
Reputation : 0
Join date : 2010-09-29
Age : 31

Help Please  Empty
PostSubject: Re: Help Please    Help Please  I_icon_minitimeThu Sep 30, 2010 7:16 pm

phew lucky...thought i was wrong again
hmm ya back to the enemy coordinates offset... my x,y,z are this 0130,0150, 0170 respectively... it is not close to each other like my nade coordinates offset n self coordinate offset
Back to top Go down
-LeetGamer-
Admin



Posts : 247
Points : 397
Reputation : 4
Join date : 2010-09-29
Age : 30

Help Please  Empty
PostSubject: Re: Help Please    Help Please  I_icon_minitimeThu Sep 30, 2010 7:37 pm

Why would you think you where wrong when you made working codes with them Razz
Back to top Go down
Sponsored content





Help Please  Empty
PostSubject: Re: Help Please    Help Please  I_icon_minitime

Back to top Go down
 
Help Please
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
PSP Coding :: PSP Section :: PSP Chat :: PSP Coding Help-
Jump to: