AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   Solved Build notice [L4D2-POINTS SYSTEM] (https://forums.alliedmods.net/showthread.php?t=331156)

leaffan 03-08-2021 11:26

Build notice [L4D2-POINTS SYSTEM]
 
I'm writing with (Google Translate) I don't know English guys.

The specific link is here: https://forums.alliedmods.net/showpost.php?p=2719385

I am trying to download the smx of ps_bess.sp on this link:

PHP Code:

Plugin failed to compilePlease try contacting the author.
SourcePawn Compiler 1.10.0.6453
Copyright 
(c1997-2006 ITB CompuPhase
Copyright 
(c2004-2018 AlliedModders LLC

183888.attach
(5) : fatal error 183cannot read from file"ps_natives"

Compilation aborted.
1 Error

I am getting this warning. Can someone compile this for me, friends?
Thank you from now. I would also be grateful if you explain how you compiled it.

Marttt 03-08-2021 11:55

Re: Build notice [L4D2-POINTS SYSTEM]
 
You are missing the ps_native.inc in your include folder. (Get plugin feature doesn't work for external/3rd party includes).

This is a post I did in another thread, is not specific to the buy plugin but can give you some idea on how to compile.

Quote:

Originally Posted by Marttt (Post 2733443)
Is my first plugin with 3rd party dependency, so I may have forgotten some points about scripting or instructions.

@Maur0, I added the smx file now compiled by Spider in the main post. You can download and test.

So here are the steps in case you need to do that someday.
  • Download Left 4 DHooks plugin
  • Unpack the zip file and get the .inc file inside the scripting folder (sourcemod\scripting\include\left4dhooks.inc)
  • Go to the Spider Compiler website
  • Drop the .inc file at the "Drop .inc files here" area
  • Paste the l4d2_nerf_damage_common.sp sourcecode in the left area
  • Click Compile then Download

OR
  • Windows Only (Not Sure)
  • Download Left 4 DHooks plugin
  • Unpack the zip file and get the .inc file inside the scripting folder (sourcemod\scripting\include\left4dhooks.inc)
  • Paste the left4dhooks.inc in your SM sourcemod\scripting\include folder
  • Paste the l4d2_nerf_damage_common.sp file in your SM sourcemod\scripting folder
  • Drag the l4d2_nerf_damage_common.sp file to the spcomp.exe file, located in the same folder
  • Get the file generated (l4d2_nerf_damage_common.smx)

There are some tutorials around the forum about how to compile plugins,

I use one great from Dragokas that let me compile any .sp file just by double click on Windows.


leaffan 03-08-2021 12:12

Re: Build notice [L4D2-POINTS SYSTEM]
 
Quote:

Originally Posted by Marttt (Post 2739733)
You are missing the ps_native.inc in your include folder. (Get plugin feature doesn't work for external/3rd party includes).

This is a post I did in another thread, is not specific to the buy plugin but can give you some idea on how to compile.

Quote:

Download Left 4 DHooks plugin
Unpack the zip file and get the .inc file inside the scripting folder (sourcemod\scripting\include\left4dhooks.inc)
Go to the Spider Compiler website
Drop the .inc file at the "Drop .inc files here" area
Paste the l4d2_nerf_damage_common.sp sourcecode in the left area
Click Compile then Download
This happened thank you.

-----------

Quote:

Windows Only (Not Sure)
Download Left 4 DHooks plugin
Unpack the zip file and get the .inc file inside the scripting folder (sourcemod\scripting\include\left4dhooks.inc)
Paste the left4dhooks.inc in your SM sourcemod\scripting\include folder
Paste the l4d2_nerf_damage_common.sp file in your SM sourcemod\scripting folder
Drag the l4d2_nerf_damage_common.sp file to the spcomp.exe file, located in the same folder
Get the file generated (l4d2_nerf_damage_common.smx)
By the way, I was already trying this, I usually compile all my plugins with this style but it didn't work on that. Thank you.

Thank you for your interest. The topic may be closed.

leaffan 03-08-2021 12:58

Re: Build notice [L4D2-POINTS SYSTEM]
 
1 Attachment(s)
Quote:

Originally Posted by Marttt (Post 2739733)
You are missing the ps_native.inc in your include folder. (Get plugin feature doesn't work for external/3rd party includes).

This is a post I did in another thread, is not specific to the buy plugin but can give you some idea on how to compile.

Hello, the compilation just worked. I have an expectation of 3 BUGS, what's the problem? If you have knowledge, can you solve it?

The Following ERRORS:

PHP Code:

SourcePawn Compiler 1.10
Copyright 
(c1997-2006 ITB CompuPhase
Copyright 
(c2004-2018 AlliedModders LLC

plugin
.sp(900) : error 027invalid character constant
plugin
.sp(900) : error 027invalid character constant
plugin
.sp(748) : warning 203symbol is never used"addPointsToTeam"

2 Errors

Thank you from now.

Note: The plugin that gave the error is attached.

Marttt 03-08-2021 16:02

Re: Build notice [L4D2-POINTS SYSTEM]
 
1 Attachment(s)
You have an uppercase X on that line \X04 should be \x04 (lowercase)

leaffan 03-08-2021 16:45

Re: Build notice [L4D2-POINTS SYSTEM]
 
Quote:

Originally Posted by Marttt (Post 2739767)
You have an uppercase X on that line \X04 should be \x04 (lowercase)

Thank you so much. But this time too !points etc. commands do not work, how did the friend who compiled this compiled it before?

PHP Code:

// void addPointsToTeam(int iClientIndex, int iTeam, int iPoints, const char[] sMessage)
// {
    // if(MaxClients >= iClientIndex)
    // {
        // if(!IsClientBot(iClientIndex))
            // if(GetClientTeam(iClientIndex) == iTeam)
                // addPoints(iClientIndex, iPoints, sMessage);
        // addPointsToTeam(++iClientIndex, iTeam, iPoints, sMessage);
    // }
    // return;
// } 

How do you think the friend here was able to compile https://forums.alliedmods.net/showpost.php?p=2719385 without closing these lines? Because when those commands are closed, the messages get corrupted.

Thank you again for your trouble.

Marttt 03-08-2021 16:50

Re: Build notice [L4D2-POINTS SYSTEM]
 
You can simple uncomment these lines:

remove the "//"

But probably your problem is another.

Also check if you are running on a coop game, some plugins "block" on different gamemodes like versus/survival

leaffan 03-08-2021 16:54

Re: Build notice [L4D2-POINTS SYSTEM]
 
Quote:

Originally Posted by Marttt (Post 2739776)
You can simple uncomment these lines:

remove the "//"

But probably your problem is another.

Also check if you are running on a coop game, some plugins "block" on different gamemodes like versus/survival

Excuse me, it can be a little difficult to explain in translation.

I am curious about the situation: https://forums.alliedmods.net/showpost.php?p=2719385, how could the friend in this link compile into .smx without interfering with any code, I just want to convert it to .smx, but I want to be able to translate it in its original form.

In short: I want to compile .smx in its original form. Without deleting any line of code. Because the friend who made it did so, if he can, we can compile it, right?

-----------

Why does it give such an error when compiling? Isn't it possible to compile this line of code without making it passive?

PHP Code:

SourcePawn Derleyici 1.10
Telif Hakk
ı (c) 1997-2006 ITB CompuPhase
Telif Hakkı (c) 2004-2018 AlliedModders LLC

plugin.sp (748): uyarı 203: sembol asla kullanılmaz: "addPointsToTeam"
Code size:           114432 bytes
Data size
:            33692 bytes
Stack
/heap size:      16384 bytes
Total requirements
:  164508 bytes 

How do I fix this error without deleting any lines of code in the plugin, because the creator was able to compile it in its original form.

Code:

addPointsToTeam

Marttt 03-08-2021 17:11

Re: Build notice [L4D2-POINTS SYSTEM]
 
This is just a warning, not an error.

Plugins can compile even with warnings.

The original has the same issue.

addPointsToTeam is not being used anywhere, so don't matter if is in the code or not.

Your problem seems to be other, the command !points is not working, according to what you said.

He didn't link the .smx, when you attach a ".sp" file in the forum it automatically creates an ".smx" link on "Get Plugin".

leaffan 03-08-2021 17:11

Re: Build notice [L4D2-POINTS SYSTEM]
 
Quote:

Originally Posted by Marttt (Post 2739776)
You can simple uncomment these lines:

remove the "//"

But probably your problem is another.

Also check if you are running on a coop game, some plugins "block" on different gamemodes like versus/survival

Just a minute I've compiled it, I'm trying. I'll let you know.


All times are GMT -4. The time now is 11:52.

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