Title: pftq I have some map scripting questions Post by: River_God on April 06, 2007, 10:08:50 AM :) I have recently been trying to sript my own map, I have even been using the help of Hyena studios tutorial, but I have run into one main problem the whole time, when I try to debug my map a pop-up sais "map failed to load" then where it tells me errors it sais "no breakpoint hit" ??? Is there something I am missing , one simple mistake, I ned to know, I think the idea of my map is perfect it just needs a little expert help. :'(
Title: Re: pftq I have some map scripting questions Post by: pftq on April 08, 2007, 05:18:50 PM Sorry for late reply - been gone.
The debugger hasn't really been of any use since AOMTT (where it supposedly "broke"). It's not technically broken but it's not really worth much and doesn't catch any real errors. Just load the map in SP - if it works there, it's fine. Title: Re: pftq I have some map scripting questions Post by: River_God on April 11, 2007, 11:47:11 AM thanks, I will see what I can do. :)
Title: Re: pftq I have some map scripting questions Post by: River_God on May 14, 2007, 05:40:51 PM OK, I have the basics of my map, but it won't load for my skirmish and I do not know what it looks like or what exactly to change, I would like you to take a look at it because that is the only way you can really help, and I could really use some more expert help on this. :)
Title: Re: pftq I have some map scripting questions Post by: pftq on May 19, 2007, 12:41:22 PM I'll take a look and see what I can find. Usually the map doesn't load means that you missed a ; or misspelled something. The debugger said above finds none of that lol
I've created an account on my File Storage (https://www.pftq.com/upload) for ya. Feel free to upload the map there. I've sent a PM containing your account info. Title: Re: pftq I have some map scripting questions Post by: River_God on May 20, 2007, 03:52:24 PM ok, I uploaded the files, I think, not too sure wether or not they actually did upload, I sent the XML and the XS file, just in case you wanted to see both, I ended up trying to fill in some missing triggers but failed completely :)
Title: Re: pftq I have some map scripting questions Post by: pftq on May 20, 2007, 04:58:45 PM Links? Copy the links it gives you and post'em.
Title: Re: pftq I have some map scripting questions Post by: River_God on May 21, 2007, 10:09:25 AM They were the wrong file type, I transfered them to a .txt so they are there now.
Title: Re: pftq I have some map scripting questions Post by: pftq on May 26, 2007, 01:41:08 PM Can you post the links to the files? I gave you a private account so I cannot access them unless I destroy your user and password. :p
Title: Re: pftq I have some map scripting questions Post by: River_God on May 27, 2007, 03:32:38 PM here I'll attach them to this... XML here Title: Re: pftq I have some map scripting questions Post by: River_God on May 27, 2007, 03:33:06 PM And here, the XS...
Title: Re: pftq I have some map scripting questions Post by: pftq on May 27, 2007, 10:08:42 PM Okay first major prob I see is that the cases are wrong. IIRC the script is case-sensitive so check the capitalization of the commands etc.
Title: Re: pftq I have some map scripting questions Post by: River_God on June 02, 2007, 06:46:54 PM really, did not know it was case sensitive. I will fix that.
Does the same go for the XML? Title: Re: pftq I have some map scripting questions Post by: River_God on June 02, 2007, 07:24:18 PM ??? ok, I have fixed what I could find and it still is not working... maybe I have a capital when I don't need it not sure, if you oculd take another look? :D I did not modify the XML at all, hoping it works
Title: Re: pftq I have some map scripting questions Post by: pftq on June 03, 2007, 02:45:55 PM lol I barely opened it and found this:
rmsetstatustext It has wrong capitalization. Also why so many void {}s? There should only be one that encompassses the entire script. Take a look at some existing maps (go to your program files >... RM to see ES's scripts) Title: Re: pftq I have some map scripting questions Post by: River_God on June 04, 2007, 01:21:21 PM sry I was not sure about the void{} I have looked at many maps in file, that is where I got alot of my code, like the code for the map shape I got from Araucania(or one of them), I will look again.
Title: Re: pftq I have some map scripting questions Post by: River_God on June 04, 2007, 01:29:36 PM There I fixed that first one and found a few others (mr instead of rm). I am at the wrong house to know if it works but I will stil post it here. I was hoping you would help me with the triggers I was trying to figure out, I don't know much about triggers, I found a few I thought would be useful, but they are not complete. ;) I would just like to take this oportunity to thank you again. I will add your name next time I edit it.
Title: Re: pftq I have some map scripting questions Post by: River_God on June 04, 2007, 01:41:15 PM I just read a bit about The Asian Dynasties expansion coming out in fall. One new option of it is Relic Victory. This can both help and destroy my map for TAD, not only can I have relics instead of Cows which will automatically allow a victory timer, which I could probably make 0. But people will already be able to do that and it will become something like green valley, just a custom map of regular game play. This sucks! I will just have to keep it on TWC :( and one question. Will you be coming back for TAD?
Title: Re: pftq I have some map scripting questions Post by: pftq on June 06, 2007, 04:59:28 PM No I don't think I'll be coming back. Getting busier and busier with personal life stuff. :(
About your map: I notice you use if functions this way: if (rmGetPlayerTeam(playa))==1{ That should actually be: if (rmGetPlayerTeam(playa)==1) { You do that many times. Title: Re: pftq I have some map scripting questions Post by: River_God on June 07, 2007, 12:49:33 PM Thanks for that one, cannot believe I did that, but I have seen worse. (the letter o instead of the number 0) ;) but it is still not working!
There must be something I am missing... Title: Re: pftq I have some map scripting questions Post by: River_God on June 07, 2007, 04:57:07 PM New edits... but still not working
Title: Re: pftq I have some map scripting questions Post by: pftq on June 08, 2007, 09:09:35 PM Open string at:
rmAddTriggerCondition(" /*when player has all cows in their plateau*/ Also do not define variables in forloops: for (int i=1; <=cNumberNonGaiaPlayers){ Title: Re: pftq I have some map scripting questions Post by: River_God on June 13, 2007, 12:08:24 PM posting it here for easy access on other computer...
And I only put the description like that because I was not sure how to say it so I put it in a way you would be able to understand and possibly replace with the right code. Title: Re: pftq I have some map scripting questions Post by: pftq on June 13, 2007, 02:32:52 PM No I meant the string is open - that's why the map is crashing. You have open quotes.
Also: for (i<=cNumberNonGaiaPlayers){ You need to define i so that it is: for (i=1;<=cNumberNonGaiaPlayers){ Title: Re: pftq I have some map scripting questions Post by: River_God on June 14, 2007, 05:18:11 PM Like this?
Title: Re: pftq I have some map scripting questions Post by: River_God on June 16, 2007, 01:27:35 PM I was thinking about restarting the code from scratch to fix this not loading thing, should a map be able to load even if there is just terrain?
Title: Re: pftq I have some map scripting questions Post by: pftq on June 16, 2007, 05:35:00 PM Yes
What you should do is comment out sections of the script and figure out when it loads - that way you know where to correct. However, you have a lot of syntax errors. just found another: for playa>=0{ This should be either: for(playa=1;<=#) { OR while(playa>=0) { I'm not sure what you're trying to do as you normally have two values for a forloop. Title: Re: pftq I have some map scripting questions Post by: River_God on June 17, 2007, 03:09:49 PM ok, I have been able to determine there is something wrong with my area codes. I am not sure what but I know that it is a problem.
Title: Re: pftq I have some map scripting questions Post by: pftq on June 17, 2007, 04:08:51 PM rmBuildArea(plateauT, 0.5, 0.75);
? I don't recall there being 3 parameters in rmBuildArea..maybe I'm forgetting things but double check. Title: Re: pftq I have some map scripting questions Post by: River_God on June 18, 2007, 10:12:08 AM You are right of course, the only parameter is the area name.
Title: Re: pftq I have some map scripting questions Post by: River_God on June 18, 2007, 10:38:36 AM HA! :D I found a problem, where it said
rmSetAreaInfluenceSegment(plateauT, 0.45, 0.75, 0.55, 0.75); it should really be rmAddAreaInfluenceSegment(plateauT, 0.45, 0.75, 0.55, 0.75); but I still cannot see the area when I test it :( Title: Re: pftq I have some map scripting questions Post by: pftq on June 18, 2007, 05:48:20 PM Is it still not loading? lol
What are you using to edit the code? Perhaps you might look at the scripting section of aoe3.pftq.com - have a few suggestions there for better scripting. You still haven't corrected this line btw: while (playa<=cNumberNonGaiaPlayers){ which should be: while (playa=1;<=cNumberNonGaiaPlayers) { above it: int i=1 is also missing a ; Title: Re: pftq I have some map scripting questions Post by: River_God on June 18, 2007, 08:47:58 PM OK, I FINALLY have a working version :D, but it does not place the players how I want :), it doesn't place the flags(cows) where I want :-\, and there are absolutely no working triggers :(. The triggers I need are a victory trigger that ends game when all cows are on the plateau, and chat triggers for in-game instructions. These are what I need to finish the skeleton of this map. ;)
Title: Re: pftq I have some map scripting questions Post by: pftq on June 19, 2007, 01:45:38 AM What is happening right now? Do the areas/objects place at all?
For the triggers- you can try an attempt at it and show me how it looks first. :D I'll try to debug from there. Title: Re: pftq I have some map scripting questions Post by: River_God on June 19, 2007, 07:22:01 AM The areas place, the players just end up placing circular, I want them to be placed at the opposit ends, next to their plateau. what happens exactly is 4 forests are placed, 2 plateaux, and as many players as there are in the map place circular, and sometimes don't place becuase of forests.
Title: Re: pftq I have some map scripting questions Post by: pftq on June 19, 2007, 08:42:26 AM You want to use this to control how close teams are put together:
rmSetTeamSpacingModifier(0.00-1.00); Title: Re: pftq I have some map scripting questions Post by: River_God on June 21, 2007, 01:08:44 PM It would seem someone has already made aCapture the Flag map, either that or someone has stolen my map already, pftq remove this topic from the forum and I will change my personal acocunt on pftq.com back to what it was in order for you to access it and we can discuss further modifications to my map in secret.
|