Deco not injecting.

Development guides, discussion, and testing for Garden Box compatible agents.

Deco not injecting.

Postby The Second » Tue Jun 04, 2013 12:43 am

I'm having some trouble getting a deco to work. The icon shows in GB, but the deco will not inject; GB throws no errors, nor does the game.

The caos:
Code: Select all
new: simp 1 99 14905 "fir_tree" 1 0 500
mvto game "ch_x" game "ch_y"

rscr
enum 1 99 14905
   kill targ
next


And the PRAY:

Code: Select all
"en-GB"

group DSGB "Fir Tree"
"Agent Type" 0

"Agent Description" "Gee, it's a tree!"

"Agent Animation File" "gb_deco_fir_tree.c16"
"Agent Animation Gallery" "gb_deco_fir_tree"
"Agent Animation String" "0"
"Agent Sprite First Image" 0
"GB_Category" 6
"Agent Description" "Gee, it's a tree!"
"Agent Author" "TheSecond"

"Script Count" 1
"Script 1" @ "gb_deco_fir_tree.cos"

"Dependency Count" 3
"Dependency 2" "gb_deco_fir_tree.c16"
"Dependency Category 1" 2
"Dependency 2" "fir_tree.c16"
"Dependency Category 2" 2
"Dependency 3" "gb_deco_fir_tree.catalogue"
"Dependency Category 3" 7


"Remove script" "enum 1 99 14905 kill targ next"

inline FILE "gb_deco_fir_tree.c16" "gb_deco_fir_tree.c16"
inline FILE "fir_tree.c16" "fir_tree.c16"
inline FILE "gb_deco_fir_tree.catalogue" "gb_deco_fir_tree.catalogue"


The sprite is 100x150 if it makes a difference.

[edit] Fixed an error with the PRAY file; however, still will not inject.
The Second
 
Posts: 6
Joined: Tue Apr 16, 2013 10:40 am

Re: Deco not injecting.

Postby malkin » Thu Jun 06, 2013 12:36 am

Could you please attach a copy of the compiled agent? Have you tried using the Lucky Stuffed Handlefish Decoration with any success?
malkin
 
Posts: 131
Joined: Sat Feb 11, 2012 3:55 am

Re: Deco not injecting.

Postby The Second » Fri Jun 07, 2013 6:13 pm

Here's the agent. Thanks for taking a look.

As for the handle fish, it injects; however, it throws an error when changing from size three.

Code: Select all
Runtime error in agent 1 99 10853 (Lucky Stuffed Handlefish) script 1 99 10853 1001 unique id 458084
Pose change failed - new pose 3 on part 0 which has base 0
 ...  0 else addv va00 1 {@}pose va00 endi ]

Windows NT/2000 6.1 build 7601 (Service Pack 1)
OriginalDisplay DirectX (netbabel 148)
Fri Jun 07 18:09:18 2013 - Shannon - 2.286 b195
Attachments
gb_deco_fir_tree.1.0.agents
(5.86 KiB) Downloaded 973 times
The Second
 
Posts: 6
Joined: Tue Apr 16, 2013 10:40 am

Re: Deco not injecting.

Postby malkin » Tue Jun 11, 2013 5:26 pm

Did some mucking around with the pray file, recompiled it with Monk and have got an apparently-working result. Did you use Monk to compile, by the way?

Note: the catalogue file is attached as an inline file, but not listed as a dependancy.

Code: Select all
"en-GB"


group DSGB "Fir Tree"

"Agent Animation File" "gb_deco_fir_tree.c16"
"Agent Animation Gallery" "gb_deco_fir_tree"
"Agent Animation String" "0"
"Agent Author" "TheSecond"
"Agent Description" "Gee, it's a tree!"
"Dependency 1" "gb_deco_fir_tree.c16"
"Dependency 2" "fir_tree.c16"
"Remove script" "enum 1 99 14905 kill targ next"

"Script Count" 1
"Script 1" @ "Fir Tree script.cos"

"Agent Sprite First Image" 0
"Agent Type" 0
"Dependency Category 1" 2
"Dependency Category 2" 2
"Dependency Count" 2
"GB_Category" 6



inline FILE "fir_tree.c16" "fir_tree.c16"
inline FILE "gb_deco_fir_tree.c16" "gb_deco_fir_tree.c16"
inline FILE "gb_deco_fir_tree.catalogue" "gb_deco_fir_tree.catalogue"


The tree's sprite itself is still spewy, but this file injects into my game.
Attachments
gb_deco_fir_tree.1.0.agents
(11.11 KiB) Downloaded 1038 times
malkin
 
Posts: 131
Joined: Sat Feb 11, 2012 3:55 am


Return to The Greenhouse Laboratory

Who is online

Users browsing this forum: No registered users and 1 guest