• ✨ ARCHIVE MODE ✨
    The forum has now been set to read-only mode, no new posts, resources, replies etc will not be possible.
    We recommend you join our Discord server to get real-time response: Discord Invite Link

Difficulty with a script

Status
Not open for further replies.

Darkfire

Administrator
Administrator
P3D Developer
oh jeez 4 isn't usable for this.....its supposed to be 0-3.....thats probably all of my problems
 

Darkfire

Administrator
Administrator
P3D Developer
so I am still having the issues with the script

I step on the scriptblock
Code:
{"Entity"{ENT[{"EntityID"{str[ScriptBlock]}}{"Position"{sngArr[18,0,25]}}{"TexturePath"{str[Center]}}{"Textures"{recArr[[0,48,16,16]]}}{"TextureIndex"{intArr[0,0]}}{"Collision"{bool[0]}}{"ModelID"{int[0]}}{"Action"{int[0]}}{"AdditionalValue"{str[goldenrod_rival_encounter]}}{"Rotation"{int[0]}}]}}
{"Entity"{ENT[{"EntityID"{str[ScriptBlock]}}{"Position"{sngArr[19,0,25]}}{"TexturePath"{str[Center]}}{"Textures"{recArr[[0,48,16,16]]}}{"TextureIndex"{intArr[0,0]}}{"Collision"{bool[0]}}{"ModelID"{int[0]}}{"Action"{int[0]}}{"AdditionalValue"{str[goldenrod_rival_encounter]}}{"Rotation"{int[0]}}]}}
{"Entity"{ENT[{"EntityID"{str[ScriptBlock]}}{"Position"{sngArr[20,0,25]}}{"TexturePath"{str[Center]}}{"Textures"{recArr[[0,48,16,16]]}}{"TextureIndex"{intArr[0,0]}}{"Collision"{bool[0]}}{"ModelID"{int[0]}}{"Action"{int[0]}}{"AdditionalValue"{str[goldenrod_rival_encounter]}}{"Rotation"{int[0]}}]}}
{"Entity"{ENT[{"EntityID"{str[ScriptBlock]}}{"Position"{sngArr[21,0,25]}}{"TexturePath"{str[Center]}}{"Textures"{recArr[[0,48,16,16]]}}{"TextureIndex"{intArr[0,0]}}{"Collision"{bool[0]}}{"ModelID"{int[0]}}{"Action"{int[0]}}{"AdditionalValue"{str[goldenrod_rival_encounter]}}{"Rotation"{int[0]}}]}}
it displays the first line of text
and then crashes
Pokémon 3D has crashed!
---------------------------

System specifications:
Pokémon 3D version: 0.25
Operating system: Microsoft Windows 7 Home Premium [6.1.7601.65536]
Decimal seperator: .
---------------------------

Here is further information:
Message: The rectangle is too large or too small for this resource.
Parameter name: rect
InnerException: NOTHING
Source: Microsoft.Xna.Framework.Graphics
StackTrace: at Microsoft.Xna.Framework.Graphics.Texture.GetAndValidateRect(_D3DSURFACE_DESC* __unnamed000, UInt32* pdwLockWidth, UInt32* pdwLockHeight, Nullable`1 rect)
at Microsoft.Xna.Framework.Graphics.Texture2D.CopyData[T](Int32 level, Nullable`1 rect, T[] data, Int32 startIndex, Int32 elementCount, UInt32 options, Boolean isSetting)
at Microsoft.Xna.Framework.Graphics.Texture2D.GetData[T](Int32 level, Nullable`1 rect, T[] data, Int32 startIndex, Int32 elementCount)
at _2._5DHero.Textures.TextureRectangle(Texture2D Texture, Rectangle Rectangle)
at _2._5DHero.NPC.ChangeTexture()
at _2._5DHero.NPC.Update()
at _2._5DHero.Script.Turn()
at _2._5DHero.Script.Update()
at _2._5DHero.ActionScript.Update()
at _2._5DHero_OverworldScreen.Update()
at _2._5DHero.Basic.Update(GameTime gameTime)
at _2._5DHero.DGame.Update(GameTime gameTime)
at Microsoft.Xna.Framework.Game.Tick()
at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
at Microsoft.Xna.Framework.GameHost.OnIdle()
at Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Microsoft.Xna.Framework.WindowsGameHost.Run()
at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
at Microsoft.Xna.Framework.Game.Run()
at _2._5DHero.Program.Main(String[] args)

You should report this error.

Go to "http://www.pokemon3d.net/forum/" to report the error in the bugs section.
here's the script:
Code:
:if:register(rival_encounter_goldenrod)
:then
:end
:endif
 
:if:not register(rival_encounter_goldenrod)
:then
@Register:rival_encounter_goldenrod
@Text: WAIT!!
@Warp:8,9,0,15
@Warp:10,8,0,17
@Turn:10,1
@Warp:1,8,0,19
@Turn:1,1
@Warp:2,12,0,15
@Turn:2,2
@Warp:3,12,0,16
@Turn:3,2
@Warp:4,10,0,19
@Turn:4,1
@Warp:5,9,0,19
@Turn:5,1
@Warp:6,11,0,19
@Turn:6,1
@Warp:7,12,0,18
@Turn:7,4
@Music:johto_rival_appear
@Warp:Player,12,0,17
@Turn:Player,1
@Text:You guys are~in Team Rocket!~What are you~doing Here!?*Murmer*uh...~We're just~...uh...~tourists*Yeah! Tourists!*Murmer*Then why are~you wearing those~uniforms!?*We-er-bought them~at a um...~*Thrift Store!~We got them at~a thrift store!!*LIARS!!~GO SNEASEL!!
@Warp:12,8,0,16
@Move:12,1
@Warp:9,43,0,13
@Warp:13,8,0,15
@Warp:12,8,0,16
@Warp:12,9,0,16
@Move:12,1
@Warp:8,43,0,13
@Warp:14,9,0,15
@Warp:12,9,0,16
@Warp:11,14,0,16
@Turn:11,1
@Text:STOP THIS INSTANT
@Turn:Player,2
@Turn:10,3
@Turn:3,1
@Move:3,1
@Turn:3,4
@Move:3,1
@Turn:3,2
@Move:11,3
@Turn:Player,2
@Text:But th-*No Buts~Wearing that~uniform is not~a crime.~
@Text:Grrr
@Warp:12,43,0,11
@Turn:Player,2
@Move:Player,1
@Turn:Player,3
@Move:Player,1
@Turn:Player,2
@Move:10,10
@Move:Player,1
@Turn:Player,3
@Move:Player,1
@Text:Thanks Officer!
@Text:Its a good thing~we have another~Unif-set of clothes~at the hotel*Just remember~to behave
@Text:Yes Sir!!
@Warp:1,20,0,26
@Warp:2,19,0,16
@Warp:3,11,0,27
@Warp:4,7,0,18
@Warp:5,12,0,16
@Warp:6,17,0,10
@Warp:7,30,0,17
@Warp:8,4,0,16
@Warp:9,8,0,15
@Warp:10,34,0,16
@Warp:11,43,0,13
@Warp:13,43,0,12
@Warp:14,43,0,14
@Music:Goldenrod
:endif
:end
 

Splint

Champion
Code:
@Turn:7,4
4 ? think that also goes only from 0 - 3 right? or is that something else , am a bit rusty with the scripting :p
 
Status
Not open for further replies.
Top