Page 15 of 17

Re: How to use pick up items in your title packs

Posted: 27 Aug 2013, 18:03
by steeffeen
most of the times that means that the encoding of your script file is wrong, i recommend editing the script directly ingame (F12)
otherwise install Notepad++ and save the script in UTF-8
(and don't use the windows crap editor/notepad)

Re: How to use pick up items in your title packs

Posted: 27 Aug 2013, 18:23
by Mandark
The old windows notepad was exactly what I was using because i'm a noob :roflol:
I will try using the Notepad++ and see what happens

EDIT: Same thing happens :(

Re: How to use pick up items in your title packs

Posted: 28 Aug 2013, 09:18
by Mandark
After adding all the main scripts listed on the first page, this is what I get when I start a server with my gamemode:
http://oi40.tinypic.com/2py3i3s.jpg

Re: How to use pick up items in your title packs

Posted: 28 Aug 2013, 09:24
by steeffeen
1. delete the whole folder Libs/Nadeo
the files are included in the game

2. many methods have changed and the old versions don't work anymore
the one that is missing on your screenshot is now called "ObjectCreate()"
http://maniascript.team-devota.com/stru ... 10910d64c9

Re: How to use pick up items in your title packs

Posted: 28 Aug 2013, 09:30
by spaii
All works nice here, replace CreateItem by ObjectCreate, and ItemAnchors by ObjectAnchors

http://maniascript.stunters.org/struct_c_sm_mode.html

Edit: oups steeffeen, posted in same time ;)

Re: How to use pick up items in your title packs

Posted: 28 Aug 2013, 09:44
by Mandark
now I get this: http://oi41.tinypic.com/2sbrj3m.jpg

I am a guy with zero maniascript experience (actually zero experience in scripting in general^^) and all I want to do is add the pick-up items to an already existing gamemode, and it's already too hard for me :(

Re: How to use pick up items in your title packs

Posted: 28 Aug 2013, 09:52
by steeffeen
if you have at least some programming experience it should be possible be reading the documenation
http://maniascript.team-devota.com/stru ... bject.html
instead of "AttachItemToAnchor()" use "Object.SetAnchor()"

if you don't have experience at all: please look for someone else who will do it for you :D
or try a programming course for something else first
(no offense :p)

Re: How to use pick up items in your title packs

Posted: 28 Aug 2013, 09:56
by spaii
replace by ItemArmor.SetAnchor(ItemAnchor); (for the current error)

next error : ItemArrow.SetAnchor(ItemAnchor); etc, etc

Re: How to use pick up items in your title packs

Posted: 28 Aug 2013, 10:06
by Mandark
Well, if anyone is interested to spot the mistakes and tell me what I should do, I can upload the script..
https://www.dropbox.com/s/ytd7qd5ijmffp ... Script.txt

Re: How to use pick up items in your title packs

Posted: 28 Aug 2013, 10:11
by spaii
CrAzYdriv3r wrote:Well, if anyone is interested to spot the mistakes and tell me what I should do, I can upload the script..
https://www.dropbox.com/s/ytd7qd5ijmffp ... Script.txt
steeffeen ?