Jump to content

Recommended Posts

@zagor64bz,

Quote

"...  I spent so many hours trying to make scripts work..."

As I was typing that I started thinking about the man-hours wasted on such a trivial thing. If you added up all the time wasted troubleshooting some invisible character it'd likely take us back to the neolithic revolution. For all the time we spend solving errors, maybe we should look deeper into this one.

Is the problem that some HTML macro gets embedded when we paste into the code field?

Part of me wants to research this but the other part says if there was a solution GOM, GF, KK, Larrow, Dedmen, somebody would have figured it out long before I got here.

  • Like 2

Share this post


Link to post
Share on other sites

Is there a sure fire way of getting scripts to work with copy and paste? Will arma edit or any of the other programs show unwanted characters or highlight any errors? Something like Word would be good where you can turn on hidden format characters. 

Share this post


Link to post
Share on other sites
4 hours ago, Jem777 said:

Is there a sure fire way of getting scripts to work with copy and paste? Will arma edit or any of the other programs show unwanted characters or highlight any errors? Something like Word would be good where you can turn on hidden format characters. 

I usually recommend poseidon, maintained by a BI dev and has all the functionality you could want.

Due to syntax highlighting it's quite easy to spot hidden characters, a variable changing color is a dead giveaway, a simple delete and rewrite fixes it.

 

On a sidenote these issues are regularly coming up since 1-2 weeks at most, never had those zero width characters earlier, so most definitely a forum issue.

 

Cheers

 

  • Like 4

Share this post


Link to post
Share on other sites

Thanks for the link, ill grab a copy.

Share this post


Link to post
Share on other sites

VS Code also displays the broken zero width characters nicely.

Actually the forum can also display it to you. Start typing a new reply, insert a code block and copy your code into there. You will see red dots everywhere where there is such a invalid character.

Yes it's a long known forum bug, no news on a fix yet.

  • Like 2

Share this post


Link to post
Share on other sites

at least there are known workarounds, ill check out VS code. never heard of it.

 

i was thinking visual studio just googled it.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×