Portal 2

Portal 2

Community maps. For science.
Welcome to Aperture Laboratories, home of the Perpetual Testing Initiative. Easily create, share and play test chambers authored by and for the Portal 2 community. Do your part! Contribute to Science!
Learn More
MC28 34 30 Apr, 2024 @ 2:54pm
Hallo!
Some of you may know about BEE2, and I'm trying to make a package for it. But I keep getting an error, and I don't know a solution. Here's the error:
+ Exception Group Traceback (most recent call last):
| File "trio\_core\_run.py", line 963, in __aexit__
| trio.NonBaseMultiError: <MultiError: <MultiError: <MultiError: ValueError('Error occured parsing MCESSENTIALS:CRUSHERSLOW item!')>>>
+-+---------------- 1 ----------------
| Exception Group Traceback (most recent call last):
| File "app\BEE2.py", line 173, in app_main
| File "app\BEE2.py", line 63, in init_app
| File "trio\_core\_run.py", line 963, in __aexit__
| trio.NonBaseMultiError: <MultiError: <MultiError: ValueError('Error occured parsing MCESSENTIALS:CRUSHERSLOW item!')>>
+-+---------------- 1 ----------------
| Exception Group Traceback (most recent call last):
| File "packages\__init__.py", line 624, in load_packages
| File "trio\_core\_run.py", line 963, in __aexit__
| trio.NonBaseMultiError: <MultiError: ValueError('Error occured parsing MCESSENTIALS:CRUSHERSLOW item!')>
+-+---------------- 1 ----------------
| Exception Group Traceback (most recent call last):
| File "packages\__init__.py", line 640, in parse_type
| File "trio\_core\_run.py", line 963, in __aexit__
| trio.NonBaseMultiError: ValueError('Error occured parsing MCESSENTIALS:CRUSHERSLOW item!')
+-+---------------- 1 ----------------
| Exception Group Traceback (most recent call last):
| File "packages\__init__.py", line 776, in parse_object
| File "packages\item.py", line 576, in parse
| File "trio\_core\_run.py", line 963, in __aexit__
| trio.NonBaseMultiError: LeafKeyvalueError(Keyvalues('Icon', 'clean/300px-Crusher.png'), 'iterate')
+-+---------------- 1 ----------------
| Traceback (most recent call last):
| File "utils.py", line 552, in _task
| File "packages\item.py", line 964, in parse_item_folder
| File "packages\item.py", line 964, in <dictcomp>
| File "srctools\keyvalues.py", line 538, in find_children
| File "srctools\keyvalues.py", line 813, in __iter__
| srctools.keyvalues.LeafKeyvalueError: Cannot iterate a leaf Keyvalues('Icon', 'clean/300px-Crusher.png'), since it has no children!
+------------------------------------
|
| The above exception was the direct cause of the following exception:
|
| Traceback (most recent call last):
| File "packages\__init__.py", line 794, in parse_object
| ValueError: Error occured parsing MCESSENTIALS:CRUSHERSLOW item!
If any of you know how to fix this, please tell me. <3
< >
Showing 1-6 of 6 comments
TeamSpen210 16 30 Apr, 2024 @ 5:15pm 
Can you post the info.txt definition you made for your CRUSHERSLOW item?
MC28 34 1 May, 2024 @ 2:30pm 
Originally posted by TeamSpen210:
Can you post the info.txt definition you made for your CRUSHERSLOW item?
Sure! Here it is:
"Item"
{
"ID" "CRUSHERSLOW"
"Version"
{
"Styles"
{
"BEE2_CLEAN" "slowcrusher" // this is referencing the item folder inside the `items` folder of your package
}
}
}
MC28 34 1 May, 2024 @ 2:30pm 
The folder is named slowcrusher
TeamSpen210 16 1 May, 2024 @ 4:04pm 
Ahh, it's the "icon" definition in the item's properties.txt file. It needs to be something like this:

"icon" { "0" "first/icon.png" }
MC28 34 2 May, 2024 @ 11:47am 
Originally posted by TeamSpen210:
Ahh, it's the "icon" definition in the item's properties.txt file. It needs to be something like this:

"icon" { "0" "first/icon.png" }

Ok! I tried to fix it, but it didn't work :P
I'll try to find one, and this is what my properties was like before:
"Properties" { "Authors" "MC28" //authors can be separated by any of **,** , **;** , or **/** "Description" "A slower variant of the crusher!" "Icon" "palette/clean/300px-Crusher.png" //this refers to the png image located relative to *resources/BEE2/* }
TeamSpen210 16 2 May, 2024 @ 2:59pm 
You want this:
"Properties" { "Authors" "MC28" //authors can be separated by any of **,** , **;** , or **/** "Description" "A slower variant of the crusher!" "Icon" { "0" "palette/clean/300px-Crusher.png" //this refers to the png image located relative to *resources/BEE2/* } }
< >
Showing 1-6 of 6 comments
Per page: 1530 50