Is there any way to make let's say, iron ore placeable in the map while selecting it from the player inventory and clicking, like a furnace or chest placement?
Re: Placeable items?
Posted: Sun Jun 07, 2015 1:54 pm
by SpeedyBrain
Do you want to drop the item? To do so press key "z"
If you want to place it like a ressource you would have to change the item you want to place.
You would have to add the entity which to place.
Re: Placeable items?
Posted: Mon Jun 08, 2015 5:19 am
by Goldern
I've tried to set it as an stationary entity but struggled at setting the type of the entity as none pre-established has met my needs
Edit: I've managed to do some stuff in a hacky way but i've found another problem, it keeps asking electricity...
As i've tried to find and failed, there's no useless entities in the game yet, i think i'll try to tinker with train stops...
Train-stop gives a crash...
Crash
0.002 2015-06-08 10:28:59; Factorio 0.11.22 (Build 14011, win64)
0.002 Operating system: Windows 8
0.002 Read data path: C:/Program Files/Factorio/data
0.002 Write data path: C:/Users/Golderng1/AppData/Roaming/Factorio
0.002 Binaries path: C:/Program Files/Factorio/bin
0.124 Initialised video: NVIDIA GeForce GTX 650 Ti
0.153 Graphics options: [FullScreen: true] [VSync: true] [UIScale: 100%] [MultiSampling: OFF] [Graphics quality: normal] [Video memory usage: all]
0.228 Loading mod core 0.0.0 (data.lua)
0.245 Loading mod base 0.11.22 (data.lua)
0.511 Loading mod WiredRevo 0.1.0 (data.lua)
0.723 Loading mod base 0.11.22 (data-updates.lua)
1.428 Initial atlas bitmap size is 16384
1.431 Created atlas bitmap 16384x6537
11.529 Factorio initialised
18.664 Loading map
18.665 Info Scenario.cpp:158: Map version 0.11.22-0
25.931 Loading map
25.932 Info Scenario.cpp:158: Map version 0.11.22-0
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\factorio\libraries\stackwalker\stackwalker.cpp (922): StackWalker::ShowCallstack
c:\factorio\src\util\logger.cpp (261): Logger::writeStacktrace
c:\factorio\src\util\logger.cpp (315): Logger::logStacktrace
c:\factorio\src\util\crashhandler.cpp (79): CrashHandler::writeStackTrace
c:\factorio\src\util\crashhandler.cpp (88): CrashHandler::SehHandler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFE29211C72)
00007FFE29211C72 (KERNELBASE): (filename not available): UnhandledExceptionFilter
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFE2BFAFB33)
00007FFE2BFAFB33 (ntdll): (filename not available): memset
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFE2BF92896)
00007FFE2BF92896 (ntdll): (filename not available): _C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFE2BFA3F0D)
00007FFE2BFA3F0D (ntdll): (filename not available): _chkstk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFE2BF64887)
00007FFE2BF64887 (ntdll): (filename not available): RtlRaiseException
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFE2BFA309A)
00007FFE2BFA309A (ntdll): (filename not available): KiUserExceptionDispatcher
c:\factorio\src\entity\trainstop.cpp (61): TrainStop::draw
c:\factorio\src\graphics\buildingrenderer.cpp (227): BuildingRenderer::drawEntityToBeBuilt
c:\factorio\src\graphics\buildingrenderer.cpp (174): BuildingRenderer::drawEntityToBeBuilt
c:\factorio\src\graphics\buildingrenderer.cpp (82): BuildingRenderer::prepareBuildingInGame
c:\factorio\src\graphics\buildingrenderer.cpp (50): BuildingRenderer::prepare
c:\factorio\src\graphics\gamerenderer.cpp (110): GameRenderer::prepareJob
c:\factorio\src\gameview.cpp (610): GameView::prepareRender
c:\factorio\src\game.cpp (195): Game::prepareRender
c:\factorio\src\mainloop.cpp (179): MainLoop::prepare
c:\factorio\src\mainloop.cpp (386): MainLoop::tickStep
c:\factorio\src\mainloop.cpp (461): MainLoop::run
c:\factorio\src\main.cpp (267): wmain
f:\dd\vctools\crt\crtw32\startup\crt0.c (255): __tmainCRTStartup
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFE2BDD13D2)
00007FFE2BDD13D2 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFE2BF25444)
00007FFE2BF25444 (ntdll): (filename not available): RtlUserThreadStart
60.400 Error Util.cpp:43: Unexpected error occurred. You can help us to solve the problem by posting the contents of the log file on the Factorio forums.
Re: Placeable items?
Posted: Thu Jun 11, 2015 9:21 am
by ThaPear
You could try making it decorative, take a look at those items.
Re: Placeable items?
Posted: Thu Jun 11, 2015 1:32 pm
by Rseding91
All you should need to do is add this to any data portion of any mod: