Forum

> > Stranded II > General > Invalid Item ID for combination
Forums overviewStranded II overviewGeneral overviewLog in to reply

English Invalid Item ID for combination

5 replies
To the start Previous 1 Next To the start

old Invalid Item ID for combination

thecode
User Off Offline

Quote
Hello.
WHen I start the game i have this message error:

Invalid ITEM ID for COMBINATION(255)

----------------------------------------
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
### Spit small meat
id=255
name=Spit small meat
group=flesh
icon=gfx\icon_spit small meat.bmp
model=gfx\Spit small meat.3ds
scale=0.28
mat=glass
weight=450
info=a healthy juice consisting of fruits
script=start
	
	on:eat {
		process "eating",1000;
		eat 5,16,10,0;
		
	}
	
script=end
--------------------------------------------
1
2
3
4
5
6
7
8
9
10
### Spit small meat(Meat + Spit)
combi=start
id=spitsmallmeat 
req=211
req=11
gen=255
script=start
	process "making Spit small meat",1500;
script=end
combi=end



Why? =(

old Re: Invalid Item ID for combination

Lion_Hearted
User Off Offline

Quote
Erm...

In the combination... Have you already used the ID named spitsmallmeat?


I know the model and icon graphic should work cause I already programed them into my own mod and they worked beautifully...


Don't have much time, but here's my script...

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
### Spit with small meat (small meat + spit)
combi=start
id=b
req=200
req=11
gen=201
script=start
	play "mat_flesh4.wav";
	process "spitting",400;
script=end
combi=end

### Spit with large meat (large meat + spit)
combi=start
id=c
req=200
req=9
gen=202
script=start
	play "mat_flesh4.wav";
	process "spitting",400;
script=end
combi=end

### Spit with Fish (Fish + spit)
combi=start
id=d
req=200
req=89
gen=206
script=start
	play "mat_flesh4.wav";
	process "spitting",400;
script=end
combi=end




### Sharp Spit
id=200
name=Sharp Spit
group=mod
icon=gfx\Lion_Hearted\icon_Sharp Spit.bmp
model=gfx\Lion_Hearted\Sharp spit.3ds
scale=5.0
mat=wood
weight=150
info=A spit fashioned from a simple branch, you could surely cook some meat with it if you should find meat to place on it. You could probably also throw it as a spear, but I'm not sure it would do much damage.
behaviour=spear
damage=2
speed=16
drag=1.5
rate=1500
script=start
	on:impact {
		$tmp=impact_class();
		$tmp2=impact_id();
		//+49 Bonus Damage on Flesh
		if (compare_material($tmp,$tmp2,"flesh")==1){
			damage $tmp,$tmp2,14;
		}
		freevar $tmp;
		freevar $tmp2;
		if (impact_first()==1){
			if (skillvalue("hunt")>=0){
				if (random(3)==1){
				$tmp=create("item",200);
				setpos "item",$tmp,impact_x(),impact_y(),impact_z();
				setrot "item",$tmp,0,getyaw("unit",1),0;
}
}
	}
}
script=end

### Spit with small meat
id=201
name=Spit with small meat
group=mod
icon=gfx\Lion_Hearted\icon_spit small meat.bmp
model=gfx\Lion_Hearted\Spit small meat.3ds
scale=5.0
mat=flesh
weight=400
info=A juicy piece of raw meat on a spit! Finally I am able to cook this meat without getting burned!
script=start
	on:use {
		if ((count_inrange("state",5,50)+count_inrange("state",4,50))>0){
			process "frying",500;
			fry;
			alteritem 1,203;
		}else{
	process "unspitting",200;
		alteritem 0,11;
		alteritem 1,200;
		}
	}
script=end

### Spit with Large Meat
id=202
name=Spit with large meat
group=mod
icon=gfx\Lion_Hearted\icon_spit large meat.bmp
model=gfx\Lion_Hearted\Spit Large Meat.3ds
scale=5.0
mat=flesh
weight=650
info=A juicy piece of raw meat on a spit! Finally I am able to cook this meat without getting burned!
script=start
	on:use {
		if ((count_inrange("state",5,50)+count_inrange("state",4,50))>0){
			process "frying",500;
			fry;
			alteritem 1,204;
		}else{
	process "unspitting",200;
		alteritem 0,9;
		alteritem 1,200;
		}
	}
script=end

### Spit with small meat cooked
id=203
name=Spit with small meat (cooked)
group=mod
icon=gfx\Lion_Hearted\icon_spit small meat cooked.bmp
model=gfx\Lion_Hearted\Spit small meat cooked.3ds
scale=5.0
mat=flesh
weight=300
info=This smells wonderful, and no burnt fingers.
script=start
	on:use {
	process "unspitting",200;
		alteritem 1,12;
		if (random (2)==1) {
		alteritem 0,200;
		}else{
			msg "The spit was too burnt...",3;}
}
script=end

### Spit with large meat cooked
id=204
name=Spit with large meat (cooked)
group=mod
icon=gfx\Lion_Hearted\icon_spit large meat cooked.bmp
model=gfx\Lion_Hearted\Spit Large Meat cooked.3ds
scale=5.0
mat=flesh
weight=500
info=This smells wonderful, and no burnt fingers.
script=start
	on:use {
	process "unspitting",200;
		alteritem 1,10;
		if (random (2)==1) {
		alteritem 0,200;
		}else{
			msg "The spit was too burnt...",3;}
}
script=end


### Spit Fish
id=206
name=Spit with fish
group=mod
icon=gfx\Lion_Hearted\icon_spit fish.bmp
model=gfx\Lion_Hearted\Spit fish.3ds
scale=5.0
mat=flesh
weight=450
info=A juicy piece of raw fish on a spit! Finally I am able to cook this meat without getting burned!
script=start
	on:use {
		if ((count_inrange("state",5,50)+count_inrange("state",4,50))>0){
			process "frying",500;
			fry;
			alteritem 1,207;
		}else{
	process "unspitting",200;
		alteritem 0,89;
		alteritem 1,200;
		}
	}
script=end

### Spit Fish (cooked)
id=207
name=Spit with fish (cooked)
group=mod
icon=gfx\Lion_Hearted\icon_spit fish cooked.bmp
model=gfx\Lion_Hearted\Spit fish cooked.3ds
scale=5.0
mat=flesh
weight=300
info=A tasty fish, and I didn't burn myself!
script=start
	on:use {
	process "unspitting",200;
		alteritem 1,90;
		if (random (2)==1) {
		alteritem 0,200;
		}else{
			msg "The spit was too burnt...",3;}
}
script=end

Maybe that could help ya, I would go into it further but I gotta get going...

Gonna be late for a meeting...

old Re: Invalid Item ID for combination

Psytechnic
User Off Offline

Quote
@Lion_Hearted: multiple combinations can have the same ID. That's not a problem.

It's the combination itself... However... It might not be...

I know that sounds mad, but bear with me.

If the combination defined BEFORE that one has some bad scripting, then it could affect the one after. Check the combi defined before just in case. Me and vibhor found one complaining about ID (30) (hammer) but it was the combo before it that was errored.

Also, you're using an item with ID=255, so have you gone into "game.inf" and changed your maximum items limit?

By the way, some errors like this will be picked up by my mod viewer's error checking capability and reported back to you so you can find the fault easier.

old closed Re: Invalid Item ID for combination

thecode
User Off Offline

Quote
Thank you but miraculously, I change my ID oject to 302 and since it works.
But when another object has the ID 255 that makes me still error = (

Why?


EDIT: (up)Please help me =(

EDIT2: UP...
edited 2×, last 21.09.10 02:38:06 pm

Admin/mod comment

pushing is annoying and forbidden. please read the rules! /DC

old Re: Invalid Item ID for combination

thecode
User Off Offline

Quote
It's always the same!
I can not create object!

I'm going to try even 500 + ID is always the same!
but when I put the id of an object already created it works
To the start Previous 1 Next To the start
Log in to replyGeneral overviewStranded II overviewForums overview