Raised This Month: $51 Target: $400
 12% 

Help / Support [SOLVED] Run time error (write_file couldn't create temp file)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zombielove
New Member
Join Date: Sep 2013
Old 09-28-2013 , 00:10   [SOLVED] Run time error (write_file couldn't create temp file)
Reply With Quote #1

I had been running a zombie server last year for a long time. I updated all my files to AMX 1.8.2 and now I am getting these errors when I try to run my server:

Code:
L 09/27/2013 - 20:30:34: [AMXX] Displaying debug trace (plugin "amx_settings_api.amxx")
L 09/27/2013 - 20:30:34: [AMXX] Run time error 10: native error (native "write_file")
L 09/27/2013 - 20:30:34: [AMXX] [0] amx_settings_api.sma::native_save_setting_string (line 1312)
L 09/27/2013 - 20:30:34: Unhandled dynamic native error
L 09/27/2013 - 20:30:34: [AMXX] Displaying debug trace (plugin "zp50_class_human.amxx")
L 09/27/2013 - 20:30:34: [AMXX] Run time error 10: native error (native "amx_save_setting_string")
L 09/27/2013 - 20:30:34: [AMXX] [0] zp50_class_human.sma::native_class_human_register (line 405)
L 09/27/2013 - 20:30:34: Unhandled dynamic native error
L 09/27/2013 - 20:30:34: [AMXX] Displaying debug trace (plugin "zp50_vip_general.amxx")
L 09/27/2013 - 20:30:34: [AMXX] Run time error 10: native error (native "zp_class_human_register")
L 09/27/2013 - 20:30:34: [AMXX] [0] zp50_vip_general.sma::plugin_precache (line 25)
L 09/27/2013 - 20:30:35: Couldn't create temp file
It happens with every file that is trying to get access to file writing (all items, vault files, etc.)

I'd appreciate it if someone could point me out in the right direction. I am not really sure what is going on. I have given the files CHMOD 777 in my FTP already, so it is not an issue with the permissions.

Last edited by MeRcyLeZZ; 06-30-2014 at 08:47. Reason: Added more information
zombielove is offline
Verteks
Junior Member
Join Date: Sep 2013
Old 09-28-2013 , 11:22   Re: [HELP] Run time error 10: native error (native "write_file")
Reply With Quote #2

Unlock all modules in modules.ini.
Verteks is offline
zombielove
New Member
Join Date: Sep 2013
Old 09-28-2013 , 13:10   Re: [HELP] Run time error 10: native error (native "write_file")
Reply With Quote #3

Code:
Currently loaded modules:
name version author status 
[ 1] CStrike 1.8.2 AMX Mod X Dev Team running 
[ 2] FakeMeta 1.8.2 AMX Mod X Dev Team running 
[ 3] MySQL 1.8.2 AMX Mod X Dev Team running 
[ 4] Ham Sandwich 1.8.2 AMX Mod X Dev Team running 
[ 5] Engine 1.8.2 AMX Mod X Dev Team running 
[ 6] Fun 1.8.2 AMX Mod X Dev Team running 
[ 7] nVault 1.8.2 AMX Mod X Dev Team running 
[ 8] RegEx 1.8.2 AMX Mod X Dev Team running 
[ 9] Sockets 1.8.2 HLSW Dev Team running 
9 modules, 9 correct
I have all modules running already.
zombielove is offline
Verteks
Junior Member
Join Date: Sep 2013
Old 09-30-2013 , 13:56   Re: [HELP] Run time error 10: native error (native "write_file")
Reply With Quote #4

I had similar problems with my server, try install older version of ZP 5.0, reinstall amxx.
Maybe your hosting has specific security methods. Try install files from server on localhost and test through New Game / HLDS.
Verteks is offline
MeRcyLeZZ
Veteran Member
Join Date: Dec 2007
Old 06-30-2014 , 08:45   Re: [HELP] Run time error 10: native error (native "write_file")
Reply With Quote #5

Confirmed. There seems to be an issue with the old amxx file natives, they request access to folders outside the server installation to create a "temp file". I updated ZP Settings API to use the new file natives. It should fix these problems 100%.
Attached Files
File Type: sma Get Plugin or Get Source (amx_settings_api.sma - 718 views - 28.1 KB)
__________________

Last edited by MeRcyLeZZ; 06-30-2014 at 08:48.
MeRcyLeZZ is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 06-30-2014 , 11:37   Re: [SOLVED] Run time error (write_file couldn't create temp file)
Reply With Quote #6

Hope you've updated the main zp50 thread will all the changes you posted.
__________________
You will find everything u need :-
Catastrophe is offline
Gam3ronE
SourceMod Donor
Join Date: Aug 2010
Old 07-05-2014 , 09:41   Re: [SOLVED] Run time error (write_file couldn't create temp file)
Reply With Quote #7

Here's a version of 5.0 with fixes posted by the AlliedModders community here: https://github.com/Gam3ronE/ZP
Gam3ronE is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode