Jul 7, 2017 at 9:13 PM
scrungy
Bobomb says: "I need a hug!"
Join Date: Oct 7, 2011
Location: PrtWeed
Posts: 777
Age: 24
how do i change the direction of an npc? for example, when i enter a room cthulhu is facing the left side. how do i change it so that he always faces the right side?
check the "spawns with alternate direction" flag
 
Jul 7, 2017 at 9:31 PM
Senior Member
"This is the greatest handgun ever made! You have to ask yourself, do I feel lucky?"
Join Date: Dec 10, 2011
Location: South Florida
Posts: 91
Age: 23
check the "spawns with alternate direction" flag

no wonder i couldnt find it. i was using cave editor instead of boosters lab. thanks!!
 
Jul 14, 2017 at 8:11 PM
beep boop
Bobomb says: "I need a hug!"
Join Date: Aug 16, 2014
Location: no
Posts: 845
Age: 22
Hey, anybody have the offset for the sprite rect of the white pixel used for the map system? The modified zero I'm using doesn't have a pixel in it's normal position, so the map currently doesn't show where the player is.
Edit: Clownancy found it for me, it's in the four commands starting at 0x14646. To change them to be the pixel before the normal map pallette, change the 0 value to 0xEF, the 39 value to 0x18, the 1 value to 0xF0, and the 3A value to 0x19.
 
Last edited:
Jul 14, 2017 at 9:36 PM
Soup Man
"In Soviet Russia, graves keep YOU!"
Join Date: Jul 15, 2014
Location: IN YOUR HEAD, SHIT FOR BRAINS
Posts: 670
Age: 7
no wonder i couldnt find it. i was using cave editor instead of boosters lab. thanks!!
I think in Cave Editor it's option 2 but I'm not sure.
 
Jul 14, 2017 at 11:26 PM
beep boop
Bobomb says: "I need a hug!"
Join Date: Aug 16, 2014
Location: no
Posts: 845
Age: 22
How exactly does Noxid's animated tiles hack work?
 
Jul 14, 2017 at 11:37 PM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
tile types are mirrored onto the unused half of the tile types mapping
p359404-0-j35nevb.png

if you give a tile a type on the right half, it'll function identically to the regular type but be animated. animations have a 3 frame loop and frames for animated tiles are taken from the two tiles directly underneath the animated one. you don't need to set the types of the animated tile's other frames but you can if you want to.
 
Jul 17, 2017 at 4:42 PM
Junior Member
"Wow! The more I drink of this magical beverage, the more games I can play! Wheee!"
Join Date: Oct 14, 2015
Location: My Room
Posts: 28
Age: 20
What's the event and sprite number for a health upgrade
 
Jul 18, 2017 at 12:11 AM
Based Member
"Life begins and ends with Nu."
Join Date: Dec 31, 2011
Location: United States
Posts: 2307
Age: 27
What's the event and sprite number for a health upgrade
If you're talking about life capsules, then the "sprite number" for that entity is 32. The actual event number and flag ID is what ever you set it to, though. If you're talking about a health refill station, then the sprite number and default event number are both 17.
 
Jul 18, 2017 at 2:11 AM
Junior Member
"Wow! The more I drink of this magical beverage, the more games I can play! Wheee!"
Join Date: Oct 14, 2015
Location: My Room
Posts: 28
Age: 20
Jul 29, 2017 at 6:11 PM
Senior Member
"Master using it, and you can have this!"
Join Date: Apr 7, 2014
Location: tired
Posts: 71
alright so this is likely just a user error thing but,
I'm trying to use doukutsu assembler to apply a hack written in doukutsu assembler
more specifically, hina's no gravity fireball bullet found here
i've tried several of them in DA and every time get something along the lines of 'line number 10 line contents setnpinter unable to recognize this command
I figured I'd try to actually apply some previously made hacks using DA first before writing my own, but this is confusing me to no ends since what I know of DA and assembly it should be fine
 
Jul 29, 2017 at 6:13 PM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
"setnpinter"
vs
"setpointer"
 
Jul 29, 2017 at 6:17 PM
Senior Member
"Master using it, and you can have this!"
Join Date: Apr 7, 2014
Location: tired
Posts: 71
the line contains setpointer
and it doesn't matter if it's exactly that either

EDIT: to clarify, i think it's trying to read the line as 'setnp'+'inter' instead of 'setpointer'
Code:
offset 404b30

#define
var1=[ebp-34]
level=[ebp+c]
#enddefine

enter ec,0

setpointer

inc bullet.distance
mov eax,bullet.distance
cmp eax,bullet.maxdistance
jle :working
mov bullet.inuse,0
push 0
push 3
push bullet.y
push bullet.x
call 40ac90
add esp,10
jmp :end

:working
mov var1,0
;up & down check?
mov eax,bullet.collision
and eax,2
jz :check2
mov eax,bullet.collision
and eax,8
jz :check2

mov var1,1

:check2 ;left & right check?
mov eax,bullet.collision
and eax,1
jz :check3
mov eax,bullet.collision
and eax,4
jz :check3

mov var1,1

:check3
mov edx bullet.direction
test edx,edx
jnz :check4
mov eax,bullet.collision
and eax,1
jz :check4
mov bullet.direction,2 ;bounce right

:check4
mov eax,bullet.direction
cmp eax,2
jnz :checkafter

mov eax,bullet.collision
and eax,4
jz :checkafter
mov bullet.direction,0 ;bounce left

:checkafter
cmp var1,0
je :working2

mov bullet.inuse,0
push 0
push 2
push bullet.y
push bullet.x
call 40ac90
add esp,10
push 1
push 1c
call 420640
add esp,8
jmp :end

:working2
cmp bullet.wassetup,0
jnz :wasset
mov bullet.wassetup,1
mov eax,bullet.direction
cmp eax,3
ja :was
jmp [eax*4+:StateTable]

:LEFT
mov bullet.movex,-400
mov bullet.movey,400
jmp :was

:UP
mov eax,Playerxvel
mov bullet.movex,eax
cmp dword playerxvel,0
jge :ur
;ul
mov bullet.direction,0
jmp :uc
:ur
mov bullet.direction,2
:uc
cmp directionfaced,0
jnz :facur
sub bullet.movex,80
jmp :facuc
:facur
add bullet.movex,80
:facuc
mov bullet.movey,-5ff
jmp :was

:RIGHT
mov bullet.movex,400
mov bullet.movey,400
jmp :was

:DOWN
mov eax,Playerxvel
mov bullet.movex,eax
cmp dword playerxvel,0
jge :dr
;ul
mov bullet.direction,0
jmp :dc
:dr
mov bullet.direction,2
:dc
cmp directionfaced,0
jnz :facdr
sub bullet.movex,80
jmp :facdc
:facdr
add bullet.movex,80
:facdc
mov bullet.movey,5ff

:was
jmp :render

:wasset
mov eax,bullet.collision
and eax,8
jz :nobounce
;bounce
mov bullet.movey,-400
jmp :gravity
:nobounce
mov eax,bullet.collision
and eax,2
jz :stillnobounce
mov bullet.movey,400
jmp :gravity
:stillnobounce
mov eax,bullet.collision
and eax,1
jz :noleftbounce
;leftbounce
mov bullet.movex,400
jmp :gravity
:noleftbounce
mov eax,bullet.collision
and eax,4
jz :gravity
;rightbounce
mov bullet.movex,-400

:gravity
;add bullet.movey,55
;cmp bullet.movey,3ff
;jle :yvelok
;mov bullet.movey,3ff
;:yvelok
mov eax,bullet.movex
add bullet.x,eax
mov eax,bullet.movey
add bullet.y,eax

mov eax,bullet.collision
and eax,0f
jz :render
push 1
push 22
call 420640
add esp,8
setpointer

:render
inc bullet.framenum
cmp level,1
jnz :level23
;level1render
cmp bullet.framenum,3
jle :finalrender1
mov bullet.framenum,0
:finalrender1

mov eax,0
cmp bullet.direction,0
je :noadd1
mov eax,10
:noadd1
mov bullet.displayu,eax
add eax,10 ;wysokosc
mov bullet.displayD,eax

mov eax,bullet.framenum
mov edx,10
imul eax,edx
add eax,80
mov bullet.displayl,eax
add eax,10 ;szerokosc
mov bullet.displayr,eax
jmp :end

:level23
cmp bullet.framenum,2
jle :finalrender23
mov bullet.framenum,0
:finalrender23
mov eax,10
mov bullet.displayu,eax
add eax,10 ;wysokosc
mov bullet.displayD,eax

mov eax,bullet.framenum
mov edx,10
imul eax,edx
add eax,c0
mov bullet.displayl,eax
add eax,10 ;szerokosc
mov bullet.displayr,eax

;trails
cmp level,2
jnz :level3t
;level2trail
push 100
push 0
push bullet.framenum
push -200
push 0
push bullet.y
push bullet.x
push 81
call 46efd0
add esp,20
jmp :end
:level3t ;level3trail
push 100
push 0
mov eax,bullet.framenum
add eax,3
push eax
push -200
push 0
push bullet.y
push bullet.x
push 81
call 46efd0
add esp,20

:end
leave
retn

:StateTable
print :LEFT
print :UP
print :RIGHT
print :DOWN
 
Last edited:
Jul 29, 2017 at 6:25 PM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
well are you missing the defines.txt that has all the custom commands in it because you need that too
 
Jul 29, 2017 at 6:27 PM
Senior Member
"Master using it, and you can have this!"
Join Date: Apr 7, 2014
Location: tired
Posts: 71
that was my problem. I had the custom file just. Not in the folder. thanks a million
 
Aug 1, 2017 at 5:50 AM
Junior Member
"Fresh from the Bakery"
Join Date: Jun 20, 2016
Location:
Posts: 13
So, i was using the mimiga mask hack and when it gets above MIM0063, there's a black square around the character sprite. The problem is that i check the mychar file and there's nothing more than just 000000 black. Any clue as to why it happens?
bat.png
 
Aug 2, 2017 at 3:56 AM
Junior Member
"It's dangerous to go alone!"
Join Date: Jun 22, 2015
Location:
Posts: 35
Is there a way to make the curly a.i work in any map? Because it only works in the labyrinth, whenever I put the curly a.i in a different map she will just stand there MENACINGLY.
 
Last edited:
Aug 4, 2017 at 11:13 AM
Giving it my all and shooting for the moon.
Modding Community Discord Admin
"What're YOU lookin' at?"
Join Date: Apr 23, 2013
Location: In a cave above the surface.
Posts: 1068
Age: 25
Is there a way to make the curly a.i work in any map? Because it only works in the labyrinth, whenever I put the curly a.i in a different map she will just stand there MENACINGLY.
She needs to be ANP'd into action, should be like state 10 or 20, but you can check the first couple of events in the Labrynth map.
 
Aug 12, 2017 at 10:58 PM
ZYZZ Spur is the best gun because its super cool
"All your forum are belong to us!"
Join Date: Jan 15, 2017
Location: Northern Hemisphere
Posts: 564
Age: 16
Does anyone know how to make a critter you can talk to that won't move?
Whenever I add the 2000 flag thing it still moves but it can't hurt me which is good, but I don't want it to constantly be moving around.
I did this before but I forget how??
 
Aug 12, 2017 at 11:05 PM
Senior Member
"Master using it, and you can have this!"
Join Date: Apr 7, 2014
Location: tired
Posts: 71
you could either hack in a new/change an NPC with assembly, or just use the <ANP command on it I think, to set it to whatever makes it not move. I think.
 
Aug 12, 2017 at 11:23 PM
Deliverer of Sweets
Bobomb says: "I need a hug!"
Join Date: Jul 20, 2015
Location: Under sea level or something
Posts: 785
Age: 25
Or you just put critter sprites on a npc that doesn't move.
 
Top