Raised This Month: $32 Target: $400
 8% 

Problem with plugins written by me


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
2Lynk
Junior Member
Join Date: May 2021
Location: Europe
Old 05-05-2021 , 02:54   Problem with plugins written by me
Reply With Quote #1

Hi there,
I am having a problem with writing and using plugins.Everytime I write a plugin, I do so on my own computer, when it is done I compile it and move to via FTP to my server, when my server then runs the plugin I get an error and I can see the plugin tries to call something that is on my PC...

The same thing happens when modding other plugins like Multi1v1 by Splewis. After my edits, I compile it, upload it and then the same type of error happens.
This is what I got after editing multi1v1.sp:
[SM] Call stack trace:
[SM][1] Line 864, C:\Users\admin\Projects\multi1v1_1.1.9\addons \sourcemod\scripting\multi1v1.sp::Event_OnPla yerDeath

Even though it runs on my server and not on my machine...


I have been trying to find a solution for a couple days now but to no avail. I could not find any awnsers online or on the forum here...

Any help is greatly appreciated!

Last edited by 2Lynk; 05-05-2021 at 04:08.
2Lynk is offline
andi67
Veteran Member
Join Date: Mar 2007
Location: Somewhere near you!!!
Old 05-05-2021 , 04:16   Re: Problem with plugins written by me
Reply With Quote #2

That's not the complete error...
__________________
Waiting for HL3,Day of Defeat3 ,but will it ever come? So I'm gonna play COD WW2.>>>>SM_SKINCHOOSER<<<<
>>You need Models for DODS/CSS/CSGO , than click here!!!<<

Last edited by andi67; 05-05-2021 at 04:17.
andi67 is offline
2Lynk
Junior Member
Join Date: May 2021
Location: Europe
Old 05-05-2021 , 04:41   Re: Problem with plugins written by me
Reply With Quote #3

It is... Happens when someone leaves the server.
And it still leaves me with the question, why is it trying to load something on my C:\ drive even though its the server and I have not hard-coded a location in the code?
The only thing I have done is to open the .sp file, changed the version number, compiled it and moved it to my server and then it shows

[SM] Call stack trace:
[SM][1] Line 864, C:\Users\admin\Projects\multi1v1_1.1.9\addons \sourcemod\scripting\multi1v1.sp::Event_OnPla yerDeath

instead of

[SM] Call stack trace:
[SM][1] Line 864, ./scripting/multi1v1.sp::Event_OnPlayerDeath
Attached Thumbnails
Click image for larger version

Name:	cmd_azogbgHUkg.png
Views:	58
Size:	11.6 KB
ID:	189138  

Last edited by 2Lynk; 05-05-2021 at 04:47.
2Lynk is offline
andi67
Veteran Member
Join Date: Mar 2007
Location: Somewhere near you!!!
Old 05-06-2021 , 03:09   Re: Problem with plugins written by me
Reply With Quote #4

Well first you can try to update your SM to the latest stable version. Secondly you can post your Code here and maybe someone here can help you to fix this...
__________________
Waiting for HL3,Day of Defeat3 ,but will it ever come? So I'm gonna play COD WW2.>>>>SM_SKINCHOOSER<<<<
>>You need Models for DODS/CSS/CSGO , than click here!!!<<
andi67 is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 05-06-2021 , 05:26   Re: Problem with plugins written by me
Reply With Quote #5

The path shown in the error message is pointing to the source code location where the plugin was compiled from. It isn't used again after compilation. It's there to help you locate the source code to look at the reported line to fix the error.

As andi67 said, you're missing the actual error message which is printed right above the stack trace.
__________________
Peace-Maker is offline
2Lynk
Junior Member
Join Date: May 2021
Location: Europe
Old 05-06-2021 , 08:43   Re: Problem with plugins written by me
Reply With Quote #6

Quote:
Originally Posted by Peace-Maker View Post
The path shown in the error message is pointing to the source code location where the plugin was compiled from. It isn't used again after compilation. It's there to help you locate the source code to look at the reported line to fix the error.

As andi67 said, you're missing the actual error message which is printed right above the stack trace.

Ah, thanks a bunch! It had me really confused as to why it was calling that location...
__________________

Last edited by 2Lynk; 05-06-2021 at 08:44.
2Lynk 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 19:35.


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