x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Decrement Int node substracts "0" instead of "1"

Branch:

Binary Build 4.8.3

Description

Decrement Int substracts "0" instead of "1".

Repro Steps

Action 1 Add new integer variable

Action 2 Print out variable

Action 3 Add decrement int node on variable

Action 4 Print out variable

Quick fix:

Change the value on decrement node from "0" to "1".

Product Version: UE 4.8
Tags:
more ▼

asked Aug 03 '15 at 01:39 AM in Bug Reports

avatar image

andreschaaf
248 10 8 19

avatar image jtsmith Aug 03 '15 at 05:27 AM

Is there a node called decrement or are you referring to the - (subtract) node? I've never had an issue subtracting integers using the - node.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

This will be fixed in 4.9.

They are already aware of the issue and have fixed it internally, but it is considered a major change due to things that reference it so it can't be included in a hotfix.

Believe me, I already went down this road.

more ▼

answered Aug 03 '15 at 06:10 AM

avatar image

Allar
3.1k 51 119 487

avatar image Ben Halliday STAFF Aug 03 '15 at 12:42 PM

Hey freakxnet,

Allar is correct, and this fix should be included in 4.9. If you'd like to stick with 4.8, it's a relatively simple fix in Blueprints, as described here:

https://answers.unrealengine.com/questions/252994/decrement-int-bp-macro-does-not-work.html

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question